Skip to content

Instantly share code, notes, and snippets.

@nshontz
Created February 10, 2015 22:58
Show Gist options
  • Save nshontz/2c0e2a551fd73dae62f2 to your computer and use it in GitHub Desktop.
Save nshontz/2c0e2a551fd73dae62f2 to your computer and use it in GitHub Desktop.
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