JScript confirmation:

This confermation javascript will pop up a confirmation box giving your visitor an option between clicking 'Ok' or 'Cancel' before continuing


This code goes into the HEAD section:


There are different ways to trigger this script. To launch on page load use the following as your body tag:


<body onLoad="mes()">

To launch when a visitor clicks a link add the following script to the enter image tag.


onClick="mes()"

Example:


<img src="../../graphics/images/enter_image.gif" onClick="mes()">

If you use this script with a standard link tag you will render the visitors choice void. If you want to use a link tag do it like I did below.


<a href="javascript:mes()">Click here to enter my site</a>


Click here to go back.