Created
June 27, 2023 08:21
-
-
Save johnmccole/6dc775c5c6ffad3b0ec34b1a908b6e75 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<select onchange="gotopage(this)"> | |
<option value="">Select</option> | |
<option value="https://www.google.com">Google</option> | |
<option value="https://www.yahoo.com">Yahoo</option> | |
<option value="https://www.msn.com">MSN</option> | |
</select> | |
<script type="text/javascript"> | |
function gotopage(selval){ | |
var value = selval.options[selval.selectedIndex].value; | |
window.location.href=value; | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment