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

前端 未结 3 1501
孤街浪徒
孤街浪徒 2021-01-18 06:31

I\'m on Windows 10 preview Build 10130, and the window.open method in the new Edge browser isn\'t behaving as per the specification.

If you use the exa

3条回答
  •  無奈伤痛
    2021-01-18 07:14

    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.

    enter image description here

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

提交回复
热议问题