Suppose I have found the form with this kind of input:
"submit" value = "delete" onclick = "return window.confirm ('are you sure?');" / & Gt;
This is my question, how does this work? When I click on 'Delete' and then click on "Cancel / No" in the dialog box, then the action is not being deleted, but why? I understand that after clicking on the input that we have removed, the event will be raised onclick, but due to lack of it the form can stop lifting action. Where the method window cofirm returns to the bully, can it stop the implementation of the form?
Basically if you come back "false" in any event handler, this event's Prevents the default action. Returning "True" allows it to continue as the confirmation function is correct when OK is clicked and otherwise false, does not submit the form until OK is clicked.