form = document.getElementById("form");
form.realSubmit = form.onsubmit;
form.onsubmit = function () {
alert("before the original onsubmit");
this.realSubmit();
}
(Based on Orc Scorcher's response to this thread on www.webdeveloper.com)
form = document.getElementById("form");
form.realSubmit = form.onsubmit;
form.onsubmit = function () {
alert("before the original onsubmit");
this.realSubmit();
}
No comments:
Post a Comment