Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

fullscreen javascript api in edge?

$
0
0

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


Viewing all articles
Browse latest Browse all 9897

Trending Articles