Producing web pages
* HTML CSS DHTML XHTML A to Z of tags        Accessibility          Design

Using a link to run a script

You can also invoke scripts using the <a> tag combined with a custom URL type. This executes a script when you click a link. This URL type is valid in any context, but is most useful when used with the <a> tag. For example, to displays an alert message box that contains the text 'hi there', you can enter:

<a href="javascript:alert('hi there')">Click me to 
see a message.</A>