Im just a newbie here in javascript .. Can somebody help me?
I need to full screen my page after i click a certain button/link for example .. i'm on page1 and when i click the button it will redirect me to page2 and will be automatically on full screen ..
i have this code for fullscreen ..
<script type="text/javascript">
// Find the right method, call on correct element
function launchFullScreen(element) {
if(element.requestFullScreen) {
element.requestFullScreen();
} else if(element.mozRequestFullScreen) {
element.mozRequestFullScreen();
} else if(element.webkitRequestFullScreen) {
element.webkitRequestFullScreen();
}
}
</script>
<button onclick =" launchFullScreen(document.documentElement);">fullscreen!</button>
---this code fullscreen only the current page, what i need is to navigate first to another page then fullscreen.. thanks in advance .. all responses/opinion are appreciated ..