To make a link that pops up an alert, simply use the code below. Naturally, customise the alert message to suit your purposes. These types of links can be useful for warning a visitor before they visit a particular page, or to ensure they have read terms & conditions. This example uses the onclick event to invoke the alert.

<a href="#" onclick="javascript:alert('This is a what a javascript alert looks like')">
Click here for an example alert
</a>

You can also popup an alert whenever a particular page loads, using the script below:

<script type="text/javascript">
alert ("This is a what a javascript alert looks like");
</script>