Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is a Select / List Menu with URL & Target possible ?

Status
Not open for further replies.

stax

Technical User
Sep 25, 2002
81
US
Hi,

I cant get target="_top" to work in a drop down menu selectable list, does anyone know if target works in this situation?

<FORM NAME="nav">
<SELECT NAME="SelectURL" style="width:11.38em" align="left" onChange="document.location.href=document.nav.SelectURL.options[document.nav.SelectURL.selectedIndex].value">
<OPTION VALUE=" target="_top">the menu option
</SELECT>
</FORM>

Maybe my code is wrong in some way? Any help would be apprieciated!
S
 
Nope, it doesn't. Option tag in itself simply marks a selection in the select tag, so there is no point of having the target attribute in an option tag.

You would need to change your onchange event handler to open the link outside the frames. Given that onchange handler calls javascript, you will get better results if you ask your question in forum216.

___________________________________________________________
[small]Do something about world cancer today: PACT[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top