On launching a window using window.open(), a new instance of browser is getting launched on button click every time, even if the calling function is having named window.
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
</head>
<body>
    <script type="text/javascript">
        function OpenNamedWindow() {
            var w2 = window.open("http://stackoverflow.com", "myWindow", "width=500px;height=500px");
        }
    </script>
    <input type="button" onclick="OpenNamedWindow();" value="Launch App" />
</body>
</html>After launching the page when I try to access window.name, it shows empty.
I did some search and looks like cross domain is causing the issue.
How can I load the page in same instance instead of launching a new browser window all the time?
 
     
     
     
    