Hey Edge Animater! I don't get the fullscreen javascript api to work. I want to make a button to view pictures in complete fullscreen.
So I use it's click function and paste the code from (How to Use the HTML5 Full-Screen API (Again) - SitePoint)
vari = document.getElementById("myimage");
// go full-screen
if(i.requestFullscreen) {
i.requestFullscreen();
} elseif(i.webkitRequestFullscreen) {
i.webkitRequestFullscreen();
} elseif(i.mozRequestFullScreen) {
i.mozRequestFullScreen();
} elseif(i.msRequestFullscreen) {
i.msRequestFullscreen();
}
inside, but it won't work.
Anyone had the same problem or sees my failure?
Some guy in the forum already asked about the right usage of the fullscreen api but no anweser!
Peace Jill