60 503
Assignments Done
98,1%
Successfully Done
In April 2018

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

Question #60207
HOW TO EXECUTE FULLSCREEN / F11 USING JAVA SCRIPT ON LOADEVENT
Expert's answer
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 first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions