How do I make an HTML button not reload the page

There is no need to use JS or jQuery.
to stop the page to reload, just specify the button type as ‘button’.

If you don’t specify the button type, the browser will automatically set it to ‘reset’ or ‘submit’ which causes the page to reload.

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

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)