Microsoft Edge: window.open only works on first try

In MS Edge (Windows 10 build 10162), the window.open call only works correctly for the first time, but subsequent calls to window.open show only a blue screen with the e logo.

<body onclick="myOpen();"> <p>Click this page and window.open() is called.</p> <script> function myOpen() { window.open("http://jsfiddle.net/sbhat/f74wt293/", null, "height=200, width=400, status=yes, toolbar=no, menubar=no, location=no"); } </script> </body> 

See the demo here: http://jsfiddle.net/sbhat/f74wt293/1/ Click on the page, close the pop-up window and click on it again. There is a blue screen.

enter image description here

I added another problem with window.open described in detail here here , which first appeared fixed, now I am faced with this problem.

+2
javascript microsoft-edge
source share
4 answers

No longer a problem, this is fixed in Windows 104040 pre-build

0
source share

The above answer is only partially correct. Line 10240 adjusts the empty field when you open the window a second time. However, new pop-ups still open in the main browser window in about 50% of cases. those. they do not automatically focus. You know that they are, because the Edge icon on the taskbar is blinking.

+3
source share

On build 10162, I got it here on this JSFiddle http://jsfiddle.net/RamiSarieddine/wu09fh1d/2/

 <a href="#" onclick="openUp()">Click this page and window.open() is called.</a> <button onclick="openUp()">Click me</button> function openUp() { window.open("http://dev.modern.ie/community/", "_blank", "height=200,width=400,scrollbars=yes,status=yes,location=no"); } 

you can see the window opening more than once and you can run the script and click several times and it still pops up enter image description here

+1
source share

Try renaming the name box every time you open it.

 window.open(myURL, 'my_window_' + Math.random()) 
0
source share

All Articles