December 2013
Intermediate to advanced
384 pages
9h 54m
English
function myEventHandler(e){ ...handler code... e.preventDefault(); return false; }
Occasionally, you might want to prohibit the browser from applying the default handler interaction for the event. For example, you might not want the browser to activate a link, or you might not want to allow a form to be reset. You can stop the default browser action by calling the event.preventDefault() method on the event object passed to the handler.
Read now
Unlock full access