My client requires that the address bar of the browser get hidden as soon he accesses the project . I'm trying to figure out a way to trigger a full screen event on load . But apparently this can't be done since requestfullscreen can only be called with user event (click , keypressed...)
here's my code :
function goFs(id) {
var element = document.getElementById(id);
if (element.mozRequestFullScreen) {
element.mozRequestFullScreen();
} else if (element.webkitRequestFullScreen) {
element.webkitRequestFullScreen();
}
}
//goFs('test');
Is there any hack to simulate a full screenmode on webapplication load ?