Ask a question »

Script to automatically display webpage in fullscreen

April 2015

The Full Screen option is available on most web browsers by clicking on the relevant link. However, IE and Firefox can support a software code in windows API that is heavy in flux and enables the automatic full screen display of a webpage. JavaScript can work in IE, and combines the small order even if the window is closed in the Firefox web browser. JavaScript works for versions 2.0 or older. If you are looking for a generic JavaScript to generate a full screen in your web browser, you will be able to find one online for Microsoft IE and Mozilla Firefox. The full screen can also be generated on most web browsers by pressing the F11 key.

Script to automatically display webpage in fullscreen




Issue


I'm looking for a script (usually Javascript) that reads a page in full screen (F11 manually). I found scripts but you have to click on a link to view the page in full screen. I'd like this to happen automatically when arriving on the page.

Solution


For those who are interested, the following code:
window.open ("mapage.html","","fullscreen=yes");  
self.close();


Only works in IE:
window.open ("mapage.html","","fullscreen=yes");  
window.open('','_parent','');  
window.close();


Works only for versions prior to version 2.0.

However I developed a nice little trick to force a fullscreen window:


I think it should meet your needs from what I understood. Moreover it seems to me that this code is compatible with IE and Firefox (at least it works in Firefox).

Note


Thanks to thedwarf21 for this tip.
For unlimited offline reading, you can download this article for free in PDF format:
Script-to-automatically-display-webpage-in-fullscreen.pdf

See also

In the same category

Published by aakai1056. - Latest update by Virginia Parsons
This document entitled « Script to automatically display webpage in fullscreen » from Kioskea (en.kioskea.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.