Archived
1
0

return false for onsubmit

This commit is contained in:
Jeff Becker
2016-05-01 10:34:05 -04:00
parent d217776201
commit 06ff6554d4
2 changed files with 5 additions and 2 deletions

View File

@@ -367,7 +367,10 @@ function init(prefix) {
}
e.onclick = postit;
var f = document.querySelector("form");
f.onsubmit = postit;
f.onsubmit = function() {
postit();
return false;
}
}