|
Q1506 How do I have a dropdown menu selection automatically load a page into a new frame without hitting a submit button?
irt.org | Knowledge Base | JavaScript | Form | Q1506 [ previous next ]
Q1506 How do I have a dropdown menu selection automatically load a page into a new frame without hitting a submit button?
Try:
<form>
<select onChange="idx = this.selectedIndex; if (idx>0) top.otherframe.location=this.options[this.selectedIndex].value; this.selectedIndex=0;">
<option>Please select a page to go to</option>
<option value="page1.html">Home</option>
<option value="http://irt.org/">irt.org</option>
</select>
</form>
|
|
|
Copyright © 1996-2008 irt.org, All Rights Reserved.