JavaScript Examples


onClick


Standard Link
Radio Button
CheckBox



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

To run the function from a hyperlink‚ the HREF reference takes the form javascript:functionname where the functionname is replaced by the actual function being called.


Taken from:

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