Two Hoots Banner



Display Alert Message Javascript

To display a message in a dialog box use the window.alert() method. For example window.alert("No Email Address entered !") can be used to display an error message. Click on the following -

Click Me!
The HTML for the above is

<a href="javascript: alert('Thank you !')">Click Me!</a>

Alternatively to show a image for the button use the following code

<a href="javascript: alert('Thank you !')">
<img src="../buttons/clickme.gif" alt="click me" width="81" height="21" border="0">
</a>

click me