/ Published in: JavaScript
When a link is clicked, call up this function.
Parameter
message = message you want to display after click
url = page you want to forward to if the user clicks OK
Parameter
message = message you want to display after click
url = page you want to forward to if the user clicks OK
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function confirmMessage(message, url) { if (confirm(message)) { location.href = url; } }