3 span { text-decoration: underline; cursor: hand; }
6 function toggleFullScreen() {
7 if (document.webkitIsFullScreen)
8 document.webkitCancelFullScreen();
10 document.getElementsByTagName('div')[0].webkitRequestFullscreen();
14 This tests that an element with a 0px width will not cause the window to disappear when entering full screen. <span onclick="toggleFullScreen()">Click to toggle full screen.</span>