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

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

java - How to compare two classes -

scala - Using the kronecker product on complex matrices with scalaNLP breeze -