Results 1 to 3 of 3
Jul 22, 2008, 15:37 #1
- Join Date
- Jan 2006
- 0 Post(s)
- 0 Thread(s)
opening link in a new window using JS while keeping html link
i'd like to create a link that pops up a page in a new windows using JS, and in case JS in not available load that page in the same browser window.
Here is the code i wrote:
<a href="target.html" onclick="MyWindow=window.open('target.html','','toolbar=no,location=no, directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=800,height=600'); return false;">
In Firefox it does just what i meant for it to do. But in IE it just loads the page in the same window.
any idea why? (except for the obvious that IE s*cks.. )