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? -

file - Python: AttributeError: 'str' object has no attribute 'readlines' -

c# - Get the Class name in a class with atribute inside a attribute method -