Microsoft Edge window.open() not honoring width height, and opens in background

时光毁灭记忆、已成空白 提交于 2019-12-01 16:44:32

This is now resolved in windows build 10162

The open method documentation and sample code in the URL you shared is aimed at IE and has not been updated yet for Edge. As i have noticed while reading through that page. Edge is still being polished and refined while we are in the insider preview mode. On Build 10162, I got it working here on this JSFiddle http://jsfiddle.net/RamiSarieddine/wu09fh1d/

window.open("http://dev.modern.ie/community/","_blank","height=500,width=500,scrollbars=yes,location=yes");

you can see the window opening with height 500, width 300 with a scroll bar, mini-maximize and close button. Check the screenshot below.

window.open("http://dev.modern.ie/community/","_blank","height=500,width=500,scrollbars=yes,location=yes");

Tom K

If the height is higher than the screen (including the browser fluff), the window will be maximized. This is different than the behavior using IE 9, 10, 11.

This is with RTM Win10 Edge.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!