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
Post a Comment