Thank you that is really close to what i need, but each option of the drop down will have its unique URL. I was messing with some samples that i found and came up with this:
In the header:
Code:
function go_there(targ,selObj,restore)
{
var where_to= confirm("What your leaving! Are you sure? Press OK to continue.");
if (where_to== true)
{
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
}
HTML Code:
<FORM>
<SELECT NAME="neighborhood" onChange="go_there('parent',this,0)" >
<OPTION SELECTED="selected" VALUE="">- - Select One- -</OPTION>
<OPTION VALUE="http://www.yahoo.com/)" >Yahoo</OPTION>
<OPTION VALUE="http://www.google.com/">Google</OPTION>
</SELECT>
</FORM>
This seems to work. Do you see anything wrong with it?
Bookmarks