简体   繁体   中英

Java script Popup window is opening with fullscreen in Windows10+IE Edge

In Windows10 with IE edge when I want to open a popup with below code its always showing full screen pop up window.Ideally by default 'fullscreen=no' but same code is working in windows7 with IE11.

Sample code :

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");

As I am new to javascript could you please help me on this

Thanks, SPradhan

Thanks for your suggestions and help.Now I am able to resolve the issue.

function test(){ window.open('google.com',"test","width=500,height=500,location=no,status=no,menubar=no,toolbar=no,resizable=no,scrollbars=1,fullscreen=no"); }

fullscreen=no works perfectly in Windows10 + IE Edge

Thanks & Regards, SPRADHAN

It depend on how do you create this. For example, in button onClick listener:

Html:

<input id='foo' type=button value="Click me" />

And in 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");
}

Fiddle: https://jsfiddle.net/jackyle/rdo4py0s/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM