javascript - How to force my Chrome browser to accept .requestFullscreen()? -


i writing application myself in need go fullscreen automatically via javascript (today simulate press of f11, works, not always).

i use .requestfullscreen() (via screenfull.js)

failed execute 'requestfullscreen' on 'element': api can initiated user gesture.

this understandable (for security / spam / usability reasons) , mentioned on numerous pages.

now, since application running on chrome browser, have ability allow request in browser. is possible setting chrome?

you can use kiosk mode:

on windows:

"c:\program files (x86)\google\chrome\application\chrome.exe" --chrome --fullscreen --kiosk http://10.20.30.40/page/ 

on linux

chrome  --chrome --fullscreen --kiosk http://10.20.30.40/page/ 

Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -