1

I've got this trouble and I was wondering if you can help me. I'm trying to maximize the window without showing any button or toolbar, and I wish it works in as much as possibles browsers.

Now I can get it with IE, but I can't with Chrome. I've been looking for a solution here but I haven't found any question similar (if it's I'm so sorry).

I've read that it could be easy using jQuery but I have no idea. I prefer to do it using JS Any suggestion or help will be welcome!

I was using this but doesn't work for Chrome enter image description here

user247702
  • 23,641
  • 15
  • 110
  • 157
Carol
  • 553
  • 2
  • 10
  • 24
  • Post an example of what you got working in IE please. – invertedSpear Oct 25 '12 at 19:58
  • 1
    Fullscreen API has good support already: http://caniuse.com/#feat=fullscreen. See demo: http://johndyer.name/lab/fullscreenapi/ – dfsq Oct 25 '12 at 20:00
  • I was using this for IE, but it doesn't work on Chrome, at least for me: – Carol Oct 25 '12 at 20:13
  • Possible duplicate of [maximize window on document ready with jquery](https://stackoverflow.com/questions/8391255/maximize-window-on-document-ready-with-jquery) – Liam Jan 11 '18 at 11:47
  • Possible duplicate of https://stackoverflow.com/questions/1125084/how-to-make-the-window-full-screen-with-javascript-stretching-all-over-the-scre – Ben Botvinick Jul 17 '18 at 23:33

1 Answers1

1

The best you can do is using window.resizeBy(x, y) and window.resizeTo(x, y)

Liam
  • 27,717
  • 28
  • 128
  • 190
Sergio Abreu
  • 2,686
  • 25
  • 20