Edit The Code:
See Result »
Try it Yourself - ©
w3ii.com
Go to W3Schools.com
The preventDefault() method will prevent the link above from following the URL.