In MS Edge (windows 10 build 10162), window.open call only works correctly the first time, but subsequent window.open calls only shows 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 demo here: http://jsfiddle.net/sbhat/f74wt293/1/
Click on the page, close the pop up window, and click on it again. There's a blue screen.
I filed another issue with window.open described in detail here, which appeared fixed at first, now I've run into this issue.
The above answer is only partially correct. Build 10240 corrects the blank box when you open a window for the second time. However, new popup windows still open BEHIND the main browser window around 50% of the time. ie they do not automatically get focus. You only know they are there because the Edge icon on the task bar flashes.
On Build 10162, I got it working 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 multiple times and it still pops up
Try renaming your window name
upon each open.
window.open(myURL, 'my_window_' + Math.random())
No longer an issue, this is fixed in windows 10 preview build 10240