Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

Window open with same name - IE11- Windows Server 2012 R2

$
0
0

We have found that, the pop window opened is not closing in IE11/Windows Server 2012 R2, where as the same is working in other browsers and servers. Please find the attached sample code.

The sample code contains 2 buttons,

> "Click me"- on clicking this button, popup window will be opened.

> "Close me"- on clicking this button, popup window should be closed. But the popup window opened is not closing.

<!DOCTYPE html><html><head><script>
function myFunction()
{
      processingWindow=window.open("https://www.google.com", "test", "height=200, width=400, status=yes, toolbar=no, menubar=no, location=no");
}
function myClose()
{
      processingWindow=window.open("", "test", "height=600, width=600, status=yes, toolbar=no, menubar=no, location=no");
	  processingWindow.close();
}</script></head><body><p>Click the button to trigger a function.</p><button onclick="myFunction()">Click me</button><button onclick="myClose()">Close me</button></body></html>


Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>