Change the link in since-when.html to the following:
<A HREF="been-there.html" ONMOUSEOVER="window.status='This is cool!'; return true;">
Visit my referrer page!
</A>
Change the link in been-there.html to the following:
<A HREF="cooke.html" ONMOUSEOVER="window.status='This is neat!'; return true;">
Visit my history page!
</A>
Use your web browser to view since-when.html yet another time. Move your mouse pointer over the link. What happens? Click the link to go to been-there.html and move your mouse pointer over the link. What happens? The ONMOUSEOVER keyword is a JavaScript event handler. Event handlers give you a way to link something someone is doing on your page to JavaScript code you provide to handle that action. In this case, when the mouse is over the link, the window object is told to put some specific text into the status bar. Note that you must use different kinds of quotes to enclose the JavaScript code and the text you will write to the status bar.
Create another file called hello-world-2.html and enter the following text:
<HTML><HEAD>
<TITLE>Hello, World!</TITLE>
</HEAD><BODY BGCOLOR="#ffffff">
<SCRIPT LANGUAGE="JavaScript">
alert("Hello, World!!");</SCRIPT>
</BODY>
</HTML>
Use your web browser to view this web page. The alert function is not part of any object. It opens an alert, displaying the message you specify. If you want to display a message longer than one line, use the concantenation operator:
alert(
"This is a test of the emergency broadcast system. " +
"This is only a test. Had this been a real emergency, " +
"we would probably all be dead right now!!");
Change hello-world-2.html to show at least 4 lines of text in the alert box. Use the concatenation operator as shown above.