Guest
Private paste!

JavaScript 1

By: a guest | May 1st, 2010 | Syntax: HTML | Size: 0.28 KB | Hits: 125 | Expires: Never
Copy text to clipboard
  1. <html>
  2. <head>
  3. <script type="text/javascript">
  4. function message()
  5. {
  6. alert("This alert box was called with the onload event");
  7. }
  8. </script>
  9. </head>
  10.  
  11. <body onload="message()">
  12. <script type="text/javascript">
  13. alert("This was called from the page")
  14. </script>
  15. </body>
  16. </html>