FrontendDeveloper.in

JavaScript question detail

What are the steps involved in return false usage

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.
Back to all JavaScript questions
Get LinkedIn Premium at Rs 399