Return to Snippet

Revision: 34828
at October 28, 2010 21:12 by chopbust


Initial Code
function confirmMessage(message, url) {
	if (confirm(message)) {
		location.href = url;
	}
}

Initial URL

                                

Initial Description
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

Initial Title
Confirm an action using Javascript

Initial Tags
javascript

Initial Language
JavaScript