How do I make an HTML button not reload the page

there is no need to js or jquery.
to stop page reloading just specify the button type as ‘button’.
if you dont specify the button type, browser will set it to ‘reset’ or ‘submit’ witch cause to page reload.

 <button type="button">submit</button> 

Leave a Comment