I have a button that needs to open a new window as a popup (under the parent page). In IE/Firefox, it works fine, but in chrome the popup appears over (on top of) the parent window.
Please suggest a fix.
use case/eg: Well, for eg if you see kayak.com or any travel website, you have the ability to search on other websites too..I want to do something similar so need the pop under...
Code: I am using a window.open(.......).blur(), but for some reason it isnt working in chrome.
The end of popunder is here. Chrome closed it yesterday.
Don't use popunders for evil
You could also leave the popup behind, like this:
This way the new content is left behind on the current tab, opening a new tab with the original window content. Works pretty much like a pop under, provided you can afford to reload the current window. You also ensure that the popup won't be shown more than once per minute.
I take back my comment, is possible.
The following worked for me. (tested latest production chrome)
Like all things, if you annoy your visitors you will have less visitors.
The misterious code of @dixie works for me on firefox, I.E, and almost Chrome (it doesn't focus on the main window but on the pop-up).
To make it perfectly work on Google Chrome, I simply added this to regain focus: