There are a few similar questions to this but none quite the same.
I want to know if there is an event that can be used to execute some JS before a page is submittin
The following code will abort the submission from the window level, which will not submit the form.
window.onsubmit = function() { alert('aborting submit'); return false; };
Tested with IE11, so it should work for some legacy applications without jQuery.