Hi,
Does anyone know the code (html or javascript) for redirecting the browser to another page as soon as an item is selected on a combobox?
Thanx.
Printable View
Hi,
Does anyone know the code (html or javascript) for redirecting the browser to another page as soon as an item is selected on a combobox?
Thanx.
Lets say the combobox contains ACTUAL web addresses
so then you'd have
Code:in the script itself
<script language="vbscript" event="onclick" for="mycombo">
window.navigate "'" & mycombo.value & "'"
</script>
and for the combo box
Code:<select id="mycombo">
etc etc etc
DocZaf
{;->
This will work in Netscape as well as Internet Exploiter
Code:<HTML>
<BODY>
<FORM NAME="frm1">
<SELECT NAME="s1" onChange="self.location = this.options[this.selectedIndex].value;">
<OPTION VALUE="http://forums.vb-world.net">VB World
<OPTION VALUE="http://search.microsoft.com/us/dev/default.asp">MSDN
</SELECT>
</form>
</BODY>
</HTML>
Thanks Mark - that did exactly what I wanted!