I have a form that has a submit button in it somewhere.
However, I would like to somehow \'catch\' the submit event and prevent it from occurring.
Is there s
var form = document.getElementById("idOfForm"); form.onsubmit = function() { return false; }