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

Technology CommunityCategory: jQueryWhat is the difference between event.PreventDefault and “return false”?
VietMX Staff asked 3 years ago
  • e.preventDefault() will prevent the default event from occurring,
  • e.stopPropagation() will prevent the event from bubbling up and
  • return false will do both.