onClick="return confirm('Do you really want to follow ' +
'this link? It's really scary!');">
Vist Our Scary Page</a>
Also, see below for an example of a form submission with a confirmation prompt:
<form method="POST" action="submit.php">
<input type="hidden" name="accountid" value="23948234">
<input type="submit" name="delete"
value="Delete My Account"
'Are you sure you want to delete your account?');">
Got a LiveJournal account? Keep up with the latest articles in this FAQ by adding our syndicated feed to your friends list!