O'Reilly logo
  • Ramon Apreza Zepeda thinks this is interesting:

form.addEventListener ("submit", search, false);

From

Cover of JavaScript: Novice to Ninja

Note

agregando la siguiente lĂ­nea funciona : form.addEventListener ("submit", function search() { alert("Submitted")}, false);
pero por separado recibo un error