Welcome to WebmasterWorld Guest from 18.104.22.168 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Pubcon Platinum Sponsor 2014
popup problem flashmastermak
I'm using the following to open a new window, with the intention of providing a backup link should java be switched off or a popup blocker be present
<a href="pagename.html" onClick="openpopup();return false;">link </a>
the popup script is located in a seperate .js file and it works fine, in-so-much as it launches a new window, however in IE6 running on a windows machine, the new page is also loading in the main browser.
it doesn't happen on my mac
Is there something I don't know?
Shouldn't it be return true? flashmastermak
I'm sure it should be 'false', althought I've tried it as 'true' and the same thing happens
I'm guessing that the problem must be with my popup script, which has a resize function, it works a treat but could it be canceling out the return false statement?
var sw = (screen.width - 10); var sh = (screen.height);
remote = window.open("pagename.html","pagename","toolbar=no,resizable=yes,status=no,scrollbars=no,menubar=no");
remote.moveTo(0,0); remote.resizeTo(sw,sh); }