Forum Moderators: open

Message Too Old, No Replies

Drop Down Menu and iFrame

         

techoveride

12:14 am on Aug 4, 2005 (gmt 0)

10+ Year Member



I am trying to get my dropdown menu to target an iFrame. How do I adjust my code?

<form name="form1">
<select style="font-size:14px;color:black;font-family:garamond;background-color:silver;" name="menu">

<option value="index.html" target="main">Home</option>

<!--INFORMATION-->
<option>---INFORMATION---</option>
<option value="kcaabout.html" target="main">Public Education</option>
<option value="kcapupguide.html" target="main">Acquiring a Keeshond</option>
<option value="kcaspecial.html" target="main">Keeshond Specialties</option>
<option value="BKCspecial.html" target="main">Keeshond Specialty Photos</option>

</select>
<input style="font-size:14px;color:#ffffff;font-family:garamond;background-color:#006699;" type="button" onClick="location=document.form1.menu.options[document.form1.menu.selectedIndex].value;" value="click here">
</form>

dreamcatcher

8:28 am on Aug 4, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try adding a target attribute to the form tag:

<iframe name="frame"></iframe>

<form name="form1" target="frame">

dc

techoveride

5:54 pm on Aug 4, 2005 (gmt 0)

10+ Year Member



I tried that and I could not get it to work. Any other suggestions. I am trying not to use any JavaScript.

dreamcatcher

6:43 pm on Aug 4, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



have you tried adding an action to the form tag.

techoveride

6:32 pm on Aug 5, 2005 (gmt 0)

10+ Year Member



It did not work