0Internet Explorer 9 LogoHow to launch HTML based programs fullscreen

I was asked recently if I could copy a teach­ing resource from a CD-ROM onto a laptop com­puter. This par­tic­u­lar pro­gram is mostly HTML with some embed­ded videos. There were 2 prob­lems with run­ning it from a loc­al short­cut.
1. Inter­net Explorer secur­ity warn­ings
2. The full-screen win­dow is launched by a par­ent browser win­dow which then sits on top of the full screen win­dow and has to be closed when the full screen win­dow is exited
Both of these are only annoy­ances rather than crit­ic­al fail­ures, but a com­plete solu­tion involves fix­ing these kind of things. Find­ing a solu­tion was a little tricky, but once the solu­tion presen­ted itself it was very simple.


Allow Active Content to run in files on My Computer dialog box internet settings

To address the secur­ity warn­ings requires chan­ging an option in the ‘Inter­net Options’ con­trol pan­el. Under the advanced tab scroll down to the “secur­ity” options and tick the option “allow act­ive con­tent to run in files on My Com­puter*”

To address the pop-up issues requires a small adjust­ment of the JavaS­cript code that launches the full-screen win­dow. The fol­low­ing code will launch a new full-screen win­dow and close the par­ent win­dow without any prompts…

window.open("","_self","");
window.close();
window.open("container.html", "popup", "fullscreen=1, left=0, top=0, menubar=no, resizable=no, status=no, scrollbars=no");

Cred­it to phd­cc for the code

What do you think? Drop us a comment below! If you would like to subscribe please use the subscribe link on the menu at the top right. You can also share this with your friends by using the social links below. Cheers.

Leave a Reply