Fullscreen without Click

Just starting out? Need help? Post your questions and find answers here.
Stefan
Posts: 248
Joined: Mon Feb 05, 2018 9:44 pm

Fullscreen without Click

Post by Stefan »

Is there a way to start a web application in full screen? I know browsers want a button click, but that's exactly what I want to avoid because I want to start in full screen mode right away.
User avatar
Peter
Posts: 1197
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080
Contact:

Re: Fullscreen without Click

Post by Peter »

No, you can't. There must always be an user interaction.
Dirk Geppert
Posts: 332
Joined: Fri Sep 22, 2017 7:02 am

Re: Fullscreen without Click

Post by Dirk Geppert »

Or you can start your Browser in kiosk mode
pecket
Posts: 4
Joined: Wed Jun 26, 2019 6:32 pm

Re: Fullscreen without Click

Post by pecket »

Dirk stated the only reliable solution. As long as you can expect the user to have a shortcut to the page, you can always start the browser itself in kiosk/fullscreen mode:
C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --start-fullscreen http://your-spiderbasic-app.com
C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --start-fullscreen http://your-spiderbasic-app.com
C:\Program Files\Mozilla Firefox\firefox.exe" -kiosk http://your-spiderbasic-app.com

Otherwise Peter explained it quite clearly; impossible without user interaction. Or maybe "impossible" is the wrong word, but it's not supposed to be possible. If you happen to find a way (like the old "resize larger than desktop area" tricks etc) it should be considered an "exploit" and therefore extremely unreliable as well as likely soon to be patched. Would otherwise be easy to make webpages looking like a bluescreen, fake desktop windows and so on, and that way manipulate users into different scams.
Post Reply