A js plugin which let you fullscreen a DOM Element on your browsers.
Here is a demo
var full=new fullscreen({
btnClass:"active", //the className which shold be toggled on the button after you click to fullscreen some DOM or not;
element:document.getElementById("full"),//the dom element you want to view on fullscreen
fullscreenBtn:document.getElementById("btn")//the dom element you will click to do this
});
// now you can fullscreen a DOM element like this.
full.launchFullscreen();
api | description |
---|---|
launchFullscreen() | fullscreen the DOM |
exitFullscreen() | exit full screen |
fullscreenedElement | the dom element which is displaying on full screen |
Almost any browser is supported even ie7 8 9.