top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is the difference between event.PreventDefault and "return false"?

+5 votes
613 views
What is the difference between event.PreventDefault and "return false"?
posted Jul 15, 2015 by Shivaranjini

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

e.preventDefault() will prevent the default event from occurring, e.stopPropagation() will prevent the event from bubbling up and return false will do both.

answer Jul 21, 2015 by Karthick.c
...