Programmatically put Google Chrome into full-screen mode with Javascript?
Here is good article: Native Fullscreen JavaScript API . It describes all three methods: webkit, firefox and W3-proposal.
// mozilla proposalelement.requestFullScreen();document.cancelFullScreen(); // Webkit (works in Safari and Chrome Canary)element.webkitRequestFullScreen(); document.webkitCancelFullScreen(); // Firefox (works in nightly)element.mozRequestFullScreen();document.mozCancelFullScreen(); // W3C Proposalelement.requestFullscreen();document.exitFullscreen();
Try these functions, they appear to be native:
void webkitRequestFullScreen();void webkitRequestFullScreenWithKeys();void webkitCancelFullScreen(); // only on Document
The API is still heavily in flux especially since the W3C joined in this week. I spent some time working through the differences to implement Full Screen in MediaElement.js HTML5 video player, and its working great in Safari 5.1+, Chrome 15+, or Firefox Nightly.