4

I need to open a child window full-size in Chrome browser, the following code works fine in Firefox 16.0.2 and IE 9, but not in Google Chrome 22 . What am I missing?

window.open(href,"_blank","scrollbars=1,fullscreen=yes,status=no,toolbar=no,menubar=no,location=no");
Alex M.
  • 43
  • 1
  • 2
  • 6

1 Answers1

3

The fullscreen option is supported by IE only ; you are "lucky", FF seems to accept it now, but Google Chrome doesn't support this feature...

You only can force width and height on your popup

http://www.w3schools.com/jsref/met_win_open.asp

Doubidou
  • 1,573
  • 3
  • 18
  • 35
  • 1
    Thank you for quick response, @Doubidou .It seems like Chrome does not support `height=screen.availHeight,width=screen.availWidth` either... – Alex M. Nov 02 '12 at 10:52
  • 2
    You can fix that : `window.open('http://www.google.fr','_blank','height='+screen.height+', width='+screen.width);` – Doubidou Nov 04 '12 at 15:42
  • @Doubidou screen.height and screen.width also not working in Chrome browser. Is there any other solution. – Viraj Dhamal Apr 02 '20 at 12:17