Simply add return false; to onclick attribute:
<a onclick="return false;">Contact us!</a>
Resource:
http://tech-blog.maddyzone.com/javascript/prevent-default-behaviour-of-anchor-tag-by-jquery-and-javascript
<a onclick="return false;">Contact us!</a>
Resource:
http://tech-blog.maddyzone.com/javascript/prevent-default-behaviour-of-anchor-tag-by-jquery-and-javascript
No comments:
Post a Comment