Created
February 10, 2015 22:58
-
-
Save nshontz/2c0e2a551fd73dae62f2 to your computer and use it in GitHub Desktop.
This file contains 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
function dropdown(mySel) | |
{ | |
var myWin, myVal; | |
myVal = mySel.options[mySel.selectedIndex].value; | |
if(myVal) | |
{ | |
if(mySel.form.target)myWin = parent[mySel.form.target]; | |
else myWin = window; | |
if (! myWin) return true; | |
myWin.location = myVal; | |
} | |
return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment