Want to change this pull-down menu script

They have: 68 posts

Joined: Jun 2006

This is probably fairly easy. The following is a script for a pull-down menu that opens the URL automatically. What i want, is for it to open it into a new full page.

<script language="JavaScript">
<!-- Hide from old browsers


function surfto(form) {
var myindex=form.dest.selectedIndex
window.open(form.dest.options[myindex].value, "", "");
}
//-->
&lt;/script&gt;
'

And here's what i insert into the body....

<FORM NAME="myform">
  <SELECT NAME="dest" SIZE=1>
    <OPTION SELECTED VALUE="http://URL#1">URL #1 DESCRIPTION
    <OPTION VALUE="http://URL#2">URL #2 DESCRIPTION
    <OPTION VALUE="http://URL#3">URL #3 DESCRIPTION
    <OPTION VALUE="http://URL#4">URL#4 DESCRIPTION
  </SELECT>
<INPUT TYPE="BUTTON" VALUE="GO NOW!" onClick="surfto(this.form)">
</FORM>
'

Thanks for your help.

They have: 9 posts

Joined: Sep 2006

you can try this link.it might help u
http://www.javascripter.net/faq/openinga.htm

They have: 37 posts

Joined: Aug 2006

I think you might need to specify a target for the links but not for sure.

They have: 68 posts

Joined: Jun 2006

I tried throwing in pieces of code... but it didn't work. I also am not sure what i tried because i forgot to post it before i closed the document.

I also tried specifying a target- but it's not that simple.

So if anyone has another idea... i'd love to hear it. Thanks.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.