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!

dropdown menu links 1

Status
Not open for further replies.

Manic

Programmer
Feb 28, 2001
343
GB
Sounds easy, but I can't seem to find a way to gt this to work.

What I have is a list of items and from that list I want a sized popup window to appear when you select one.

Is it possible to have it from selection or do you have to use a [go] button?

I have scoured but come up with nothing.

I can create a selected link and get it to open in the open window.

Thanks in advance

Manic
-----------------------------
I've broken it again !!
-----------------------------
lee.gale@virgin.net
 
use the javascript OnClick event to run the code

<select name=stuff onClick=&quot;newWindow();&quot;>

search the javascript forum it should give you all the code Bastien

There are many ways to skin this cat,
but it still tastes like chicken
 
<select ... onchange=&quot;newWin(this.options[this.selectedIndex].value)&quot;>
<option value=&quot;firstsite.com&quot;>first
<option value=&quot;secondsite.com&quot;>second
<option value=&quot;thirdsite.com&quot;>third
</select>

function newWin(url)
{
win = window.open(url,&quot;popup&quot;,&quot;width=200,height=150,toolbar=no,status=yes&quot;)
}
 
Thanks to you both.

I will be implimenting this baby all day (I have been working on it for 2 days now).

Manic
-----------------------------
I've broken it again !!
-----------------------------
lee.gale@virgin.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top