JavaScript Tutorial - 8 - possible answer to Task 24
type your name please
<html> <head> <title>Say Hello</title> <script> function say_hello() { var win=window.open("","","width=250,height=110") win.document.write("<html><head><title>Hello</title></head>") win.document.write("<body bgcolor=black>") win.document.write("<center>") win.document.write("<font size=4 color=red><b>") win.document.write("<hr>") win.document.write("Hello "+document.task24.box.value) 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 name=task24> type your name please <input type=text name=box> <input type=button value=ready onClick=say_hello()> </form> </body> </html>
HOME Table of Contents