JavaScripts - JavaScripts Alert <!DOCTYPE html> <html lang=\"en\"> <head> <title>JavaScript Alert<\/title> <meta charset=\"utf-8\"> <\/head> <body> <h1>Using

JavaScripts - JavaScripts Alert <!DOCTYPE html> <html...

This preview shows page 1 - 3 out of 6 pages.

JavaScripts: Alert: <!DOCTYPE html> <html lang="en"> <head> <title>JavaScript Alert </title> <meta charset="utf-8"> </head> <body> <h1>Using JavaScript</h1> <script type="text/javascript"> <!-- alert("Welcome to my web page!"); // --> </script> <h2>When does this display?</h2> </body> </html> ---------------------------------------------------------------- Document.Write: <!DOCTYPE html> <html lang="en"> <head> <title>JavaScript Document Write </title> <meta charset="utf-8"> </head> <body> <h1>Using Javascript</h1> <script type="text/javascript"> <!-- document.write("<p>Using document.write to add text</p>"); document.write("<h2>Notice that we can add HTML tags too!</h2>"); // --> </script> <h3>This document was last modified on: <script type="text/javascript"> <!-- document.write(document.lastModified); // --> </script> </h3> </body> </html> --------------------------------------------------------------------
Image of page 1
Mouseover: <!DOCTYPE html> <html lang="en"> <head> <title>JavaScript mouseovertest </title> <meta charset="utf-8"> </head> <body> <h1>Using JavaScript</h1> <ul> <li> <a href="#" onmouseover="alert('You moused over');">Mouseover test</a> </li> <li> <a href="#" onmouseout="alert('You moused out');">Mouseout test</a> </li> </ul> </body> </html> ----------------------------------------------------------- variableWrite: <!DOCTYPE html> <html lang="en"> <head> <title>JavaScript variable Write </title>
Image of page 2
Image of page 3

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture