I'm trying to get user confirmation with popup windows (Yes/No/Cancel).
If user click yes, then data sumited. If no, user returned to current form.
I put this on Form JavaScript:
and this on Form HTML:
But it did'nt work, when i click submit, data submitted without calling my custom javascript.
Can anyone help please??
If user click yes, then data sumited. If no, user returned to current form.
I put this on Form JavaScript:
function confirmAction() {
return confirm("Do you really want this subscription?")
}
and this on Form HTML:
<input value="Send" type="submit" onSubmit="return confirmAction()"/>
But it did'nt work, when i click submit, data submitted without calling my custom javascript.
Can anyone help please??