Learn free online HTML5, javascript, and jquery Tutorials by Examples

Wednesday, 18 June 2014

Drop Down List URL Jump Box in javascript

---------------------------------------------------
<form name="jump">
    <select name="slt" OnChange="location.href=jump.slt.options[selectedIndex].value">
        <option value="http://www.google.com">google
        <option value="http://www.yahoo.com">yahoo
        <option value="http://www.bing.com">bing
    </select>
</form>

<!----------------open the page into a new browser window.------------------->



<form name="jump">
    <select name="slt" OnChange="window.open(jump.slt.options[selectedIndex].value)">
        <option value="http://www.google.com">google
        <option value="http://www.yahoo.com">yahoo
        <option value="http://www.bing.com">bing
    </select>
</form>


--------------------------------------------------

No comments:

Post a Comment