Answer to Question #60207 in Java | JSP | JSF for Sunil

Question #60207
HOW TO EXECUTE FULLSCREEN / F11 USING JAVA SCRIPT ON LOADEVENT
1
Expert's answer
2017-10-23T05:41:45-0400
function launchFullScreen() {
if(document.documentElement.requestFullScreen) {
document.documentElement.requestFullScreen();
} else if(document.documentElement.mozRequestFullScreen) {
document.documentElement.mozRequestFullScreen();
} else if(document.documentElement.webkitRequestFullScreen) {
document.documentElement.webkitRequestFullScreen();
}
}

But browsers actually do not allow this to happen in onload, so instead you can do this on any user click.
window.onclick = launchFullScreen;

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS