Script to automatically display webpage in fullscreen

Ask a question
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.


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.
Jean-François Pillou

CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jeff Pillou, founder of CCM.net. CCM reaches more than 50 million unique visitors per month and is available in 11 languages.

Learn more about the CCM team