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
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:
path = window.document.URL; window.open(path,"_self");