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

Q1452 Using a drop down menu, how can I get to another page by just clicking on the page title within the menu, rather than use the 'Go' button?

irt.org | Knowledge Base | JavaScript | Form | Q1452 [ previous next ]

Q1452 Using a drop down menu, how can I get to another page by just clicking on the page title within the menu, rather than use the 'Go' button?

Try:

<form>
<select onChange="if (this.options[this.selectedIndex].value != "") location.href=this.options[this.selectedIndex].value">
<option>--Select a Link--
<option value="http://www.irt.org">irt.org
</select>
</form>

However the button will be needed in 16 bits browsers since they do need to be clicked somewhere else for the onChange to register.


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.