Originally Posted by jarv
Who taught you to do that? That is not the purpose of the action
Any function(s) executed on submit should be called either by the onsubmit handler or the submit button's onclick event. Preferably not both.
", it's not necessary.