This is a non-standard Full Screen API .
In theory (from an article related to the page I linked to above):
var elem = document.getElementById("myId"); if (elem.requestFullScreen) { elem.requestFullScreen(); } else if (elem.mozRequestFullScreen) { elem.mozRequestFullScreen(); } else if (elem.webkitRequestFullScreen) { elem.webkitRequestFullScreen(); }
source share