multiple windows



Write a javascript code to open multiple windows



<html>            
  <head>
    <script>
    
    function openWindows()
    {
        window1 = window.open("", "", "width=200,height=100");
        window1.document.write("This is the first window!");

        window2 = window.open("", "", "width=300,height=150");
        window2.document.write("This is the second window!");      
    }

    </script>
  </head>
<body>
    
    <p>Click the button to open multiple windows.</p>
    <input type="button" onclick="openWindows()" value="Open windows">

  </body>
</html>

Output: