detect page refresh jquery
How do I check if an element is hidden in jQuery? What is scrcpy OTG mode and how does it work? If you have any solution then give me. You would need to supply event as a parameter in case of other browsers. const pageAccessedByReload = ( (window.performance.navigation && window.performance.navigation.type === 1) || window.performance .getEntriesByType ('navigation') .map ( (nav) => nav.type) .includes ('reload') ); alert (pageAccessedByReload); As a workaround, I can only suggest if you're . browser.