Windows opened by "" do not reflect the specified size and position in Microsoft Edge


Consider the following scenario:

  • You open a webpage in Microsoft Edge.
  • The webpage calls the function and sets values to specify the size and position of the window.
  • The window that calls the function is not maximized.
In this scenario, the specified size and position are not reflected in the new window.

More Information

You can follow these steps to reproduce this issue:
  1. Save the following HTML code as "original.html".
    <!DOCTYPE html>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title> - TEST</title>

    <script type="text/javascript">

    function win_open1() {'about:blank','','titlebar=yes,toolbar=yes,location=yes,status=no,menubar=yes,scrollbars=yes,resizable=yes,width=700,Height=300,left=0,top=0');

    <input type="button" name="btn1" value="btn1" onclick="win_open1();" />width=700,Height=300,left=0,top=0<br>

  2. Open "original.html" in Microsoft Edge.
  3. If the Edge window size is Maximized, restore it to normal size.
  4. Click button to call the function with width 700px and height 300px parameters.
In this scenario, the size of the opened window is not 700x300 as expected.


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

文章 ID:3146494 - 上次审阅时间:2016年4月6日 - 修订版本: 1