Put this between the <head></head> tags:
<script language="javascript">
<!-- hide from old browsers
function confirmBox(){
if (confirm('message_to _appear_in_confirmation_box'))
action_to_happen_when_'yes'_is_pressed
else
action_to_happen_when_'no'_is_pressed
}
// end hiding -->
</script>
Use the following as the link you want to generate the popup confirmation box :
<a href="javascript:confirmbox()">
your_text or your_image
</a>
NOTE: For the confirmation box to be cancelled upon 'no', change the text after else into {}.
|