• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

What am I missing?

Lighter

. . . . . . . . .
#1
How can I target the url launch? Some I need to launch into a new window, some into the parent window. With the below form, the standard target tag doesn't work.

Code:
<form name="jump">
<select name="menu" onChange="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;" value="GO">
<option value="">Test Menu</option>
<option value="http://www.blank.net">Blank 1</option>
<option value="http://www.blank.net">Blank 2</option>
<option value="http://www.blank.net">Blank 3</option>
</select>
</form>
 
#2
With parent window you use "parent.location = ..." and with new window you'll need to use the window.open() function afaik.
 

Lighter

. . . . . . . . .
#3
'doh.

<select name="menu" onChange= " window.open(document.jump.menu.options[document.jump.menu.selectedIndex].value);" value="GO">

Yup...That worked. Thanks, Zedric. :)
 

Members online

No members online now.

Latest posts

Latest profile posts

Hello, is there anybody in there? Just nod if you can hear me ...
Xie
What a long strange trip it's been. =)

Forum statistics

Threads
61,961
Messages
673,239
Members
89,016
Latest member
poordown814