using mouse down and e.preventDefault() code example Example: js preventdefault function(event) { event.preventDefault(); }