我的客戶端要求訪問該項目時瀏覽器的地址欄會隱藏起來。 我試圖找出一種方法來觸發加載時的全屏幕事件。但顯然這不能做,因爲requestfullscreen只能與用戶事件被調用(點擊,則KeyPressed ...)隱藏瀏覽器的地址欄
這裏是我的代碼:
function goFs(id) {
var element = document.getElementById(id);
if (element.mozRequestFullScreen) {
element.mozRequestFullScreen();
} else if (element.webkitRequestFullScreen) {
element.webkitRequestFullScreen();
}
}
//goFs('test');
是否有任何黑客模擬在web應用程序加載全屏模式?
重複http://stackoverflow.com/questions/1716313/hiding-browser-address-bar-without-reloading – 2013-03-27 12:19:12