Window.open width ignored in Chrome

I want to create a fixed size popup, however the width attribute is ignored in Chrome. But it works great in FF.

Here is my code:

window.open('','','width=300');

The resulting popup is larger than the specified width.

Any suggestions?

+5
source share
2 answers

I tried putting this in Chrome version 25.0.1364.172

window.open('','','width=200,height=100');

and matches the exact height and width of the window.

to check please use

window.innerHeight; //to display height
window.innerWidth; //to display width
+3
source

, - Chrome, , . , . .

+6

All Articles