JavaScript Tutorial - 8 - possible answer to Task 23
<html> <head> <title>Say Hello</title> <script> function say_hello() { var win=window.open("","","width=200,height=110") win.document.write("<html><head><title>Hello World</title></head>") win.document.write("<body bgcolor=black>") win.document.write("<center>") win.document.write("<font size=6 color=red><b>") win.document.write("<hr>") win.document.write("Hello World") win.document.write("<hr>") win.document.write("</b></font>") win.document.write("</center>") win.document.write("</body></html>") win.document.close() } </script> </head> <body> <form> <input type=button value="say hello" onClick=say_hello()> </form> </body> </html>
HOME Table of Contents