Javascript Window create and write to new window

Description

Javascript Window create and write to new window

View in separate window


<!DOCTYPE html>

<html>
<head>
    <title>Page 1</title>
    <script type="text/javascript">
    let childWindow = open("", "", "height=300");
    //from   ww w .jav  a2 s.co m
    childWindow.document.write("Hello, new Window!<br/>");
    childWindow.document.write("How are you today?");
    </script>
</head>
<body>
    
</body>
</html>



PreviousNext

Related