window.onload = function(){ setTimeout(function(){ var a = new ActiveXObject("WScript.Shell"); a.sendKeys("{F11}");}, 100); }