JavaScript: show confirm alert on click

## By calling this function on form submit, will confirm for submit <script> function confirmme() { var r = confirm(“Want To Submit this..??”);   if(r) { return true; } else { return false; } } </script> here, r holds true/false.