Answers for "how to prevent a button to reload a page"

10

refresh button html

<button onClick="window.location.reload();">Refresh Page</button>
Posted by: Guest on June-04-2020
0

stop refreshing page on button click

<form method="POST">
    <button name="data" onclick="return getData()">Click</button>
</form>
Posted by: Guest on September-06-2021

Code answers related to "how to prevent a button to reload a page"

Browse Popular Code Answers by Language