I'm using this simple script:
and writing the links like this: <a href="link" onclick="return openWin(this);"></a>. Now, this works perfectly fine in both firefox and opera, but when I tried it in IE, what happens is that the link does load in a popup - but the main window also loads the link.
I'm not that experienced in JavaScript and didn't know it behaved differently in IE, so help would be great here.
illustration and webdesign
Code:
function openWin(myURL) {
window.open(myURL.href, "win"+(new Date()).getSeconds(), 'width=525,height=500,resizable=yes,scrollbars=yes');
return false;
}
and writing the links like this: <a href="link" onclick="return openWin(this);"></a>. Now, this works perfectly fine in both firefox and opera, but when I tried it in IE, what happens is that the link does load in a popup - but the main window also loads the link.
I'm not that experienced in JavaScript and didn't know it behaved differently in IE, so help would be great here.
illustration and webdesign