Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
91
rated 0 times [  96] [ 5]  / answers: 1 / hits: 15773  / 8 Years ago, wed, july 6, 2016, 12:00:00

I have a link to reload the page with JS:



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


How do I stop page reload after the location.reload() method has been called?


More From » jquery

 Answers
11

You can use the following code:



window.stop();


Beware: Microsoft Internet Explorer and Edge don't support it.


[#61496] Monday, July 4, 2016, 8 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
devlin

Total Points: 474
Total Questions: 113
Total Answers: 100

Location: Sweden
Member since Fri, Apr 16, 2021
3 Years ago
devlin questions
Tue, Apr 27, 21, 00:00, 3 Years ago
Sat, Oct 31, 20, 00:00, 4 Years ago
Fri, Aug 28, 20, 00:00, 4 Years ago
;