Mega Code Archive

 
Categories / JavaScript Tutorial / Event
 

Inline DOM Event Registration

< html> <head> <title>Inline DOM Event Registration</title> <script type="text/javascript"> function helloMsg() {     var helloString = "hello there";     document.write(helloString); } function helloTwice() {     var helloString = "hi again";     document.write(helloString); } window.onload=helloTwice; </script> </head> <body onload="helloMsg();"> </body> </html>