0Internet Explorer 9 LogoCome lanciare programmi basati HTML fullscreen

I was asked recently if I could copy a teaching resource from a CD-ROM onto a laptop computer. This particular program is mostly HTML with some embedded videos. C'erano 2 problems with running it from a local shortcut.
1. Internet Explorer security warnings
2. The full-screen window is launched by a parent browser window which then sits on top of the full screen window and has to be closed when the full screen window is exited
Both of these are only annoyances rather than critical failures, but a complete solution involves fixing these kind of things. Finding a solution was a little tricky, but once the solution presented itself it was very simple.


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

To address the security warnings requires changing an option in the ‘Internet Optionscontrol panel. Under the advanced tab scroll down to the “sicurezza” options and tick the optionallow active content to run in files on My Computer*

To address the pop-up issues requires a small adjustment of the JavaScript code that launches the full-screen window. The following code will launch a new full-screen window and close the parent window 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");

Ringraziamo phdcc for the code

Inviateci i vostri pensieri commentando qui sotto! Se si desidera iscriversi si prega di utilizzare il link iscriviti sul menu in alto a destra. È inoltre possibile condividere con i tuoi amici usando i link sottostanti sociali. Saluti.

lascia un commento