Simplest way to redirect page when click on an option box in dropdown.

Here is the simplest way to redirect page when click on an option box to the corresponding option value page or link in dropdown.

<form name="cityselect">
    <select name="menu" onChange="window.document.location.href=this.options[this.selectedIndex].value;" value="GO">
        <option selected="selected">Select One</option>
        <option value="http://www.test1.com">Test1</option>
        <option value="http://www.test2.com">Test2</option>
    </select>
</form>

Share With Friends

Speak Your Mind

*

Time limit is exhausted. Please reload CAPTCHA.