Jump to content

Drop Down Redirection


Cloud9247

Recommended Posts

the javascript (place in the head section of your html)
replace the first &lt; with < - it thinks I'm trying to post code!!!!!
[code]
&lt;script language="JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
[/code]

the html...
[code]
<form name="form1">
<select name="redirector" onChange="MM_jumpMenu('parent',this,0)">
<option value=""></option>
<option value="http://www.here.com">link1</option>
<option value="http://www.there.com">link2</option>
</select>
</form>
[/code]
Link to comment
https://forums.phpfreaks.com/topic/18255-drop-down-redirection/#findComment-79618
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.