which method stop the default action of an element from happening code example
Example: jquery preventdefault
$("a").click(function(event){
event.preventDefault();
});
$("a").click(function(event){
event.preventDefault();
});