Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

window.location.reload complete?

I call

window.location.reload(false) 

in a javascript method to update the page. I have additional javascript calls after this call. Is there a way to know when window.location.reload(false) has completed running before calling the additional javascript calls?

like image 693
user840930 Avatar asked May 03 '26 09:05

user840930


1 Answers

You simply have to provide a function to onload : a reload isn't different from a load.

window.onload = function() { // ...
like image 155
Denys Séguret Avatar answered May 04 '26 22:05

Denys Séguret



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!