Javascript Onclick Confirmation Message Dated Added: 11th October 2007
The script comes in handy if you want to give the user a chance to review there action before they submit.
This is extremely simple and should be nested in action tags such as links, it will halt the progress of the request and present a confirmation box which requires a OK to proceed, where Cancel will stop the processing.
See below
Example Code:
<a href="#" onclick="return confirm('Enter your message here, to create a newline use \nThen text will appear on a new line')">Link here</a>