Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the Document</title> </head> <body> <script> let newWin = window.open("about:blank", "welcome", "width=500,height=500"); newWin.document.write( "<script>window.opener.document.body.innerHTML = 'Welcome to W3Docs'<\/script>" ); </script> </body> </html>