Don't like ads? PRO users don't see any ads ;-)
Guest

JavaScript 1

By: a guest on May 1st, 2010  |  syntax: HTML  |  size: 0.28 KB  |  hits: 132  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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>