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

ios - Is 'init' forbidden as *part* of a variable name? -

javascript - Why Selenium can't find an element that is graphically visible -

angular - Angular2 Router: Cannot find primary outlet to load 'HomeComponent' -