1. document.getElementById("form").οnsubmit=formHandler; 2. <form οnsubmit="return formHandler();"></from>