popup open position in chrome

Andrew picture Andrew · Jul 19, 2011 · Viewed 28.3k times · Source

When I'm using firefox and then using window.open('blah.com','blah','left=-30,top=-300');, the popup opens in my second display above my first one but in chrome, the popup just opens at left=0,top=0. Is there a reason why chrome is doing this and how would I fix the problem?

Thanks!

Answer

Chris Jordan picture Chris Jordan · Jul 10, 2014

This is a bug in Chrome when the pop-up window is opened on the secondary monitor. The Chrome folks seem to say that this is a security issue (though how this is a security issue is beyond me).

Now, opening a pop-up window on a NON-EXISTENT secondary monitor, I could understand is a security issue, but... whatever.

Here's a link to a discussion on the matter:

https://code.google.com/p/chromium/issues/detail?id=137681