nikola8 — 2011-04-28T02:22:58-04:00 — #1
I want something that will pass firefox and all other popup blockers.
felgall — 2011-04-28T16:00:42-04:00 — #2
There is nothing that can bypass the blockers as the blockers are specifically designed to block windows opening in those situations.
The only way to bypass the blockers is to open the new window when your visitor clicks a link.
The only other way to do it is as a popin within the web page itself.
nikola8 — 2011-04-29T01:06:19-04:00 — #3
So, how to "open the new window when your visitor clicks a link."
paul_wilkins — 2011-04-29T04:14:35-04:00 — #4
By attaching a function to the link's [onclick event from where you could use [url="https://developer.mozilla.org/en/DOM/window.open"]window.open](https://developer.mozilla.org/en/DOM/element.onclick) using the alwaysLowered setting to put the new window behind the current one.
<a href="www.google.com" target="_blank">LINK</a>
This will open in a new window.
By attaching a function to the link's onclick event from where you could use window.open using the alwaysLowered setting to put the new window behind the current one.
Unless you want it always behind, in which case Paul's got it right.
felgall — 2011-04-29T17:25:43-04:00 — #6
But should not be used because:
- target is deprecated and ceased to be a proper part of HTML back in 1997.
<a href="www.google.com" onclick="newwin window.open(this.href);newwin.blur();">LINK</a>
Of course since blur (and focus) are non-standard for windows it will depend on which browser your visitor is using as to which window will end up on top.
OH! Ha, sorry, good to know!! Thanks!