Untitled
public text v1 · immutablefunction addOnsubmitEvent(form, func) {
if (typeof (form.onsubmit) != "function") {
form.onsubmit= func;
} else {
var oldEvent = form.onsubmit;
element.onclick = function () {
oldEvent();
func();
};
}
}