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
Post a Comment