How is jQuerys event.PreventDefault(); done?
<p>I'm trying to learn just <code>Javascript</code> at the moment, and I'm making a little thing and when I click on the <code>Anchor</code> I don't want the page to refresh, I added a <code>href='#'</code> but the page still shoots to the top if I'm at the bottom and click on the <code>Anchor</code>. I'm trying to avoid this, I tried googling but I can't for the life of me find anything, I googled 'event.preventDefault without jQuery and nothing. Any information would be great, thanks!</p>
