0

I got a specific page that I want in full screen mode like if you press F11.

How can I fix this page to get in the full screen mode?

The page contains a full screen slide show.

Thanks for your help.

****** UPDATE ******

I figured out to create a button that goes to the full screen mode.

Still I would like to know if it's possible to load full screen instantly when the page is entered.

Albert
  • 157
  • 4
  • 13
  • 1
    Instruct the user to press F11 for fullscreen if they want fullscreen. I would consider doing it for them bad design (if even possible) – Kevin B Jan 22 '15 at 23:07
  • 2
    It's true that going fullscreen without user consent is bad UX. However if you just want to add a friendly fullscreen button to your slideshow (like the one on most video players), that would be reasonable. – Ansel Santosa Jan 22 '15 at 23:10
  • Refer this https://stackoverflow.com/questions/19355370/how-to-open-a-web-page-automatically-in-full-screen-mode/50279328#50279328 – Gayan Sandamal May 10 '18 at 18:37

1 Answers1

-1

JS has an experimental fullscreen API that you can use by calling:

elem.requestFullscreen();

There are vendor-specific functions that are necessary in some cases.

You could also use a library like screenfull.js to abstract the complexity away for you

Update: It's not possible to go fullscreen automatically upon load. If you try to use the fullscreen API calls without them being synchronous reactions to user input (click, keypress, etc) they will fail.

Ansel Santosa
  • 8,224
  • 1
  • 28
  • 39