Confirm JavaScript

Hi
I have Web form generated from CRM web Application. this form is to collected the leads and send them to CRM system I want to prompt the user using JavaScript to confirm or review the data . but my problem the form will still send the data even if the user click “cancel”. thank you for your help


	$('input[name$="save"]').click(function () {
		
			  var answer = confirm('Are you sure you want to send the lead?');
      
                if (answer==true ) {
                    alert("thanks");
                }
				if(answer == false)
				{
					
					alert("Please review!");
				}
	});
	


It seems that you are using jQuery, this should help you http://api.jquery.com/event.preventDefault/ .

thnaks for Help