<html>
<body>
<p>Click the button to open a new window and add some content.</p>
<button onclick="myFunction()">Try it</button>
<script>
function myFunction() {
var w = window.open();
w.document.open();
w.document.write("<h2>Hello World!</h2>");
w.document.close();
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/js/tryit.asp?filename=tryjs_doc_open2 by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 02:28:19 GMT -->
</html>