Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

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>

Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.