JavaScript Program to Open New Window and Set Window Position of Newly Opened Window

Write a JavaScript program to open new window and set window position of newly opened window.

Source Code
    <title>Open new window and set window position</title>
        var mywin ="", "myWindow", "width=500, height=300, top=50, left=75, status=no")

        mywin.document.write("Screen width: " + mywin.outerWidth);
        mywin.document.write("Screen height: " + mywin.outerHeight);

"Coding Hub - Learn to code" app now available on Google Play Store