SyntaxFix
Write A Post
Hire A Developer
Questions
return false; at the end of the onclick handler will do the job. However, it's be better to simply add type="button" to the <button> - that way it behaves properly even without any JavaScript.
return false;
type="button"
<button>