The question is pretty much in title.
Is there a way in Javascript to determine whether the page has been refreshed by user or loaded after redirecting from other website?
performance.navigation.type will tell you if the page was reloaded, and some more info. Check out the docs here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With