Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q1506 How do I have a dropdown menu selection automatically load a page into a new frame without hitting a submit button?

You are here: irt.org | FAQ | JavaScript | Form | Q1506 [ previous next ]

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>

©2018 Martin Webb