Need a pro for this

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
newprogram
Forum Newbie
Posts: 4
Joined: Mon Nov 13, 2006 9:55 pm

Need a pro for this

Post by newprogram »

I have a iframe and two option on my webpage if the users pick option1 google open and if they choose option2 yahoo.com open this work great I what it to open google or yahoo in the iframe not the webpage it on
here the code
<iframe name="I1">Your browser does not support inline frames or is currently configured not to display inline frames.</iframe></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
<form>
<input type="radio" name="op" onclick="document.location = 'http://www.google.com';" /> Option1
<input type="radio" name="op" onclick="document.location = 'http://www.msn.com' ;" /> Option2
</form>
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Moved to Client-Side.
User avatar
daedalus__
DevNet Resident
Posts: 1925
Joined: Thu Feb 09, 2006 4:52 pm

Post by daedalus__ »

The hint of the day is: your javascript is wrong.
Post Reply