js fullscreen browser code example
Example: fullscreen mode javascript
//creating a button and linking it to bClicked()
document.onload=function(){
documentbody.innerHTML += "<button onclick=\"bClicked()\"></button>"
}
function bClicked(){
//yourID = the element that you want to fullscreen
document.getElementByID("yourID").requestFullscreen();
}
//to exit fullscreen
document.exitFullscreen();