javascript - Stop reloading the page after location.reload(); has been called -


i have link reload page js:

<a href="#" onclick="location.reload()">reload</a> 

how stop page reload after location.reload() method has been called?

you can use following code:

window.stop(); 

beware: microsoft internet explorer , edge don't support it.


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -