JavaScript Examples


OnMouseOver



Que Publishing

White House

LoboSoft Software


The function uses the window.alert() method to display message boxes to the user.

In order to display the apostrophe in the message box‚ it must be preceded by the back slash (\) character. This tells the interpreter to read it as a literal character.

The onClick event references a function that is imported from an external file.


Taken from:

Book: JavaScript by Example
Publisher: Que Publishing
Chapter: 4
Listing: 4.8
Additions by: R. Hinton