Unstoppable Domains

Drop Down Menu - Extra window

Spaceship Spaceship
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
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
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
•••
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
•••
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
•••
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
•••
anyone help :(
 
0
•••
Dynadot — .com Registration $8.99Dynadot — .com Registration $8.99
Appraise.net

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Zero Commission
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back