ajax call in javascript event prevent code example Example: jquery preventdefault $("a").click(function(event){ event.preventDefault(); });