html5-fullscreen

Enter fullscreen on page load without human intervention


I'm automating a process for myself (it's not going to be used by public) where as soon as browser starts it'll load our site & should go full screen without any user action.

HTML5 Fullscreen api works fine if user does any action (eg: user clicks a button then site goes fullscreen). But i want it on page load.

I had similar issue with video autoplay (videos won't play on page load without user action) but i got it fixed by enabling a setting in chrome flags (chrome://flags/#autoplay-policy).

Do we have any similar solution for auto fullscreen a page? Any browser would be fine.


Solution

  • You can make Chrome go in fullscreen with --start-fullscreen flag added in the desktop shortcut command.

    To add a desktop shortcut in Chrome go in the Main menu > More tools > Create shortcut...

    After that, you should have a shortcut on you desktop. Right click on it, go on Properties and add the flag at the end in Target on Windows or Command on Ubuntu.