Edge: Script70 error opening new window tab

情到浓时终转凉″ 提交于 2019-12-06 03:20:29

You have syntax error in your code example which you can see in console in any browser.

You can try to modify your code like below will work with all browser including MS Edge.

<!doctype html>
  <head>
    <script>
      var myWindow = window.open("", "TestWindow", "width=200,height=100");
      myWindow.document.write("<p>Hello World</p>");
      //myWindow.close();
    </script>
  </head>
<body>
</body>
</html>

Note:- copy this code to your machine and than try to test it. If you try to run the code with stackOverFlow than it will give you an error.

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