What are the steps involved in return false usage

Posted by Andre Scott | Updated on

The return false statement in event handlers performs the below steps,

  1. First it stops the browser’s default action or behaviour.
  2. It prevents the event from propagating the DOM
  3. Stops callback execution and returns immediately when called.

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers