Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > drop down menu

Reply
Thread Tools

drop down menu

 
 
Kian
Guest
Posts: n/a
 
      07-31-2003
Hi,

I wonder if anyone can help me on my problem...
My drop down menu below is working ok. Can anyone tell me how can I add
target="_top" attribute into the code below??

Thanks,
Kian
==================================

<script language="JavaScript">
<!--
function goToURL(form)
{
var myindex=form.dropdownmenu.selectedIndex
if(!myindex=="")
{window.location.href=form.dropdownmenu.options[myindex].value;}
}
-->
</script>
<select name="dropdownmenu" size="1" onChange="goToURL(this.form)">
<option selected value="">
Go to...
<option value="http://www.black.com/">
Black
<option value="http://www.yello.com">
Yellow
<option value="http://www.red.com">
Red
</select>


 
Reply With Quote
 
 
 
 
Kris
Guest
Posts: n/a
 
      07-31-2003
In article
<bPbWa.31867$(E-Mail Removed) ogers.com>,
"Kian" <(E-Mail Removed)> wrote:

> Hi,
>
> I wonder if anyone can help me on my problem...
> My drop down menu below is working ok. Can anyone tell me how can I add
> target="_top" attribute into the code below??


<snip HTML/JS of inaccessible/unreliable SELECT navigation>

<ul>
<li><a href="foo.html" target="_top">foo</a></li>
<li><a href="foo.html" target="_top">foo</a></li>
<li><a href="foo.html" target="_top">foo</a></li>
<li><a href="foo.html" target="_top">foo</a></li>
</ul>

Or you drop the frames and don't have to bother with _top at all to
start with.

--
Kris
http://www.velocityreviews.com/forums/(E-Mail Removed)erlands (nl)
"We called him Tortoise because he taught us" said the Mock Turtle.
 
Reply With Quote
 
 
 
 
Jim Grimble
Guest
Posts: n/a
 
      07-31-2003
top.location.href=form.dropdownmenu.options[myindex].value ;

Kian wrote in message ...
>Hi,
>
>I wonder if anyone can help me on my problem...
>My drop down menu below is working ok. Can anyone tell me how can I add
>target="_top" attribute into the code below??
>
>Thanks,
>Kian
>==================================
>
><script language="JavaScript">
><!--
>function goToURL(form)
>{
>var myindex=form.dropdownmenu.selectedIndex
>if(!myindex=="")
>{window.location.href=form.dropdownmenu.options[myindex].value;}
>}
>-->
></script>
><select name="dropdownmenu" size="1" onChange="goToURL(this.form)">
> <option selected value="">
> Go to...
> <option value="http://www.black.com/">
> Black
> <option value="http://www.yello.com">
> Yellow
> <option value="http://www.red.com">
> Red
></select>
>
>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Affecting a dynamically created drop down from another dynamically created drop down. msimmons ASP .Net 0 07-16-2009 03:17 PM
retrive preselected value in second drop down list from the first drop down list weiwei ASP .Net 0 01-05-2007 07:29 PM
Multiple select drop down poplulating sub drop down scott@dettcom.com Javascript 3 11-09-2006 07:50 PM
Auto Drop down a Drop Down List xxbmichae1@supergambler.com Javascript 5 11-23-2005 01:35 AM
New to .NET, can I have one drop down box control the data of another drop down box using a database? SirPoonga ASP .Net 2 01-07-2005 10:44 PM



Advertisments