|
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> |
More information Changing the appearance of links Changing pictures with the mouse Expanding and contracting outlines Displaying a message in the status bar Displaying a page in a new window Using a link to run a script |