0 votes
in JavaScript by
What are the steps involved in return false usage in Javascript?

1 Answer

0 votes
by

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.
...