preventdefault do something and start javascript code example Example: js preventdefault function(event) { event.preventDefault(); }