Dynadot Aftermarket: discover domain gems worth investing in. Visit our aftermarket.

Drop Down Menu - Extra window

SpaceshipSpaceship
SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
Watch

max99

Established Member
Impact
0
This is code for one of my options on drop down menu <option value="/beta/amazon.html" onClick="MM_openBrWindow('http://www.amazon.co.uk/exec/obidos/redirect?link_code=ur2&tag=dvdrentalcomp-21&camp=1634&creative=6738&path=www.amazon.co.uk','merchant','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes')">
Amazon</option> , it works except a new window with the amazon link doesnt appear, anyone know why


Basically i want the page to link to www.mysite.com/beta/amazon.html , and then another window to open with 'http://www.amazon.co.uk/exec/obidos/redirect?link_code=ur2&tag=dvdrentalcomp-21&camp=1634&creative=6738&path=www.amazon.co.uk' that in it

What am i doing wrong ?
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Code:
<script type="text/javascript">
function openlinks(url1, title1, url2, title2) {
     window.open(url1, title1, "menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes");
     window.open(url2, title2, "menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes");
}
</script>

<option onclick="openlinks('http://google.com', 'Google', 'http://yahoo.com', 'Yahoo');">Open the Windows</option>
 
0
Close
does the script but (top bit) does that need to be in head at top, or anywhere ?

I've done this and it don't seem to work, says error

<script type="text/javascript">
function openlinks(url1, title1, url2, title2) {
window.open(url1, title1, "menubar=yes,location=yes,resizable=yes,scrollbars= yes,status=yes");
window.open(url2, title2, "menubar=yes,location=yes,resizable=yes,scrollbars= yes,status=yes");
}
</script>
<div class="bar" style="width: 1051; height: 72">
<ul>
<li class="browse_category">
<p>Search By Retailer: <select name="Retailer" onChange="location=this.options[this.selectedIndex].value;" id="search_box" style="font-family: Verdana">
<option value=# selected>Retailers A to H</option>
<option onclick="openlinks('/beta/amazon.html', 'Amazon', 'http://www.google.com', 'google');">Amazon</option>
 
0
Close
I dont see why you dont just put the open window functions in to the link.. Its over complicating things?

But I reccomend putting any functions in to the <head>

But, for a start have:

<script language="JavaScript" type="text/javascript">
 
0
Close
i've done what i wanted to do in normal links. i.e just a "click here" and it goes to a page, and another window opens up aswell, but i don't know how in drop down menus
 
0
Close
anyone help :(
 
0
Close
CatchedCatched

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back