Jump Menu to open in new window

<script type=”text/javascript”>
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+”.location='”+selObj.options[selObj.selectedIndex].value+”‘”);
if (restore) selObj.selectedIndex=0;
}
</script>

<form name=”form” id=”form”>
<select name=”jumpMenu” id=”jumpMenu” onchange=”MM_jumpMenu(‘window.open()’,this,0)”>
<option value=”http://www.google.com”>Google</option&gt;
<option value=”http://www.yahoo.com”>Yahoo</option&gt;
<option value=”http://www.facebook.com”>Facebook</option&gt;
</select>
</form>

Advertisements
  1. I am trying to get my pull down menu open a new page for each link. This was written using dreamweaver CS 5.5. Help.

    Select FISH OIL article
    FISH OIL measuring organochlorines
    FISH OIL mercury and fish oil supplements
    FISH OIL recognizing and preventing overexposure to mercury from fish
    FISH OIL PCBs. Lead, and Mercury Liver Disease
    FISH OIL PCBs found in fish oil
    FISH OIL separation of risks of seafood intake

  2. Oh oh it didn’t post the code. Let me try again to post the code.

    Here is the code::::

    Select FISH OIL article
    FISH OIL measuring organochlorines
    FISH OIL mercury and fish oil supplements
    FISH OIL recognizing and preventing overexposure to mercury from fish
    FISH OIL PCBs. Lead, and Mercury Liver Disease
    FISH OIL PCBs found in fish oil
    FISH OIL separation of risks of seafood intake

  3. Hi Daine,

    May be you didn’t have to remove comment tag that’s why you found problem.

    Copy and paste the script under title tag and set up your pull down menu as a did in example.

    Thanx,
    Thepixelart

    • Log
    • June 5th, 2012

    Thanks

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: