Tuesday 5 August 2014

difference between e.preventDefault(); and return false

The difference is that preventDefault will only prevent the default event action to occur, i.e. a page redirect on a link click, a form submission, etc. and return false will also stop the event flow.

No comments:

Post a Comment