uses for event prevent default code example Example: js preventdefault function(event) { event.preventDefault(); }