Комментарии:
It's not working on page load
Ответитьvery helpful
Ответитьis it possible when website open full screen automatically
ОтветитьCan you please provide the code?
ОтветитьI use it with angular it works correctly, Thamks
ОтветитьBest 🎉
Ответитьi used it with reactjs it works perfectly, thank you for keeping it so simple
ОтветитьI have question: is there some way to skip user action to working proper (I try "window.onload" but not working, something do, but not fullscreen)
ОтветитьThanks for the tip
Ответитьfull piece of code for lazy peeps
<script>
function getFullscreenElement() {
return document.fullscreenElement
|| document.webkitFullscreenElement
|| document.mozFullscreenElement
|| document.msFullscreenElement
}
function toggleFullscreen() {
if (getFullscreenElement()) {
document.exitFullscreen();
} else {
document.documentElement.requestFullscreen().catch(console.log);
}
}
document.addEventListener("dblclick", () => {
toggleFullscreen();
})
</script>
now do it for iPhones
ОтветитьHow to after login on full screen mode
ОтветитьWas helpful for my react app. I did the same in the public/index.html. Thanks for always helping me out.
ОтветитьI want to go full screen automatically on page load. Please help
Ответитьhow trigger fullscreen automatically
ОтветитьHi I have struggled in One point Of Full screen, Can we call a function when click default close button of full screen mode, can You tell me, how could I catch that event?
I want to Hide Expand button and show Collapse button when come to Full Screen Mode --> 1
and I want to hide Collapse button and show Expand Button When come to normal screen --> 2
Problem is 2 , I can't understand where I need to write that function
Please Advise me.
Thanks In Advanced.
Hi there.. is there anyway to get the webpage fullscreen on load?
Ответитьdoes this work on mobile versions?
ОтветитьThanks for the tutorial. Do you know what a situation in the safari browser? Does it support the full screen api?
Ответитьthere have any way to see fullscreen automatically when site will be loaded..?????
Ответить