Dispatch onsubmit event before submitting forms
Dispatch onsubmit event before submitting forms

Also checks return value to see if the default action was prevented.

andyearnshaw/keyLime,andyearnshaw/keyLime