[英]Java script Popup window is opening with fullscreen in Windows10+IE Edge
在帶有IE Edge的Windows10中,當我想使用以下代碼打開彈出窗口時,它始終顯示全屏彈出窗口。理想情況下默認情況下為'fullscreen = no',但相同的代碼在帶有IE11的Windows7中正常工作。
樣例代碼:
myaddress=url //to for popupwindows
win = window.open(myaddress,"test","width=500,height=500,location=no,status=no,menubar=no,toolbar=no,resizable=no,scrollbars=1");
由於我是javascript新手,請您對此提供幫助
謝謝,SPradhan
感謝您的建議和幫助。現在,我可以解決此問題。
功能test(){window.open('google.com',“ test”,“ width = 500,height = 500,location = no,status = no,menubar = no,toolbar = no,resizable = no,scrollbars =如圖1所示,全屏=無“); }
fullscreen = no在Windows10 + IE Edge中完美運行
謝謝與問候,SPRADHAN
這取決於您如何創建它。 例如,在按鈕onClick偵聽器中:
HTML:
<input id='foo' type=button value="Click me" />
在JavaScript中:
var e = document.getElementById('foo');
e.onclick = test;
function test(){
window.open('google.com',"test","width=500,height=500,location=no,status=no,menubar=no,toolbar=no,resizable=no,scrollbars=1");
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.