Use it in the submit button, not in the form:
<input type = "submit"
value = "Submit the Page"
data-theme = "b"
data-role = "button"
data-inline = "true"
onclick = "return submitConfirm();" />
<script>
function submitConfirm(){
return confirm("Should I proceed with the form submission ?");
}
</script>