/ Published in: JavaScript
Simple popup confirmation before submitting a form.
Expand |
Embed | Plain Text
function confirmSubmit() { input_box=confirm("Are you sure you want to continue? Click OK to continue, or Cancel to stop"); if (input_box==true) { document.getElementById('likeaction').value='doit'; document.getElementById('mainform').submit(); } else { return false; } }
You need to login to post a comment.
