preventDefault() prevents the default event from occuring, stopPropagation() prevents the event from bubbling up and return false does the both.
$('a').click(function() { return false; });
$('a').click(function(e) { e.preventDefault(); });
So finally, return false from within a jQuery event handler is effectively same as calling both e.preventDefault and e.stopPropagation on the passed jQuery.Event object.
Read event.preventDefault() from jQuery reference.
return false is doing 3 separate things when you call it:
Read:
In a world where digital presence is paramount, the question isn't whether you should do…
Over the years, people have experimented with various methods to maintain healthy and beautiful hair.…
Your brand more than developing an attractive and creative logo and infectious motto. It's the…
Introduction Are you someone who has suffered from a personal injury and want to file…
Operating from home has emerged as one of the most popular ways of doing jobs…
If the consequences of our society’s ever-growing debt are what worries you, then it is…