0Internet Explorer 9 LogoComment lancer des programmes de base de HTML Plein écran

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. Il y avait 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");

crédit phd­cc for the code

Vous avez quelques idées de votre propre? Laissez-vous tenter par des commentaires ci-dessous! Si vous souhaitez vous abonner s'il vous plaît utiliser le lien d'abonnement dans le menu en haut à droite. Vous pouvez également partager avec vos amis en utilisant les liens sociaux ci-dessous. À votre santé.

Laisser un commentaire