how to detect browser refresh in javascript 23 How To Detect Browser Refresh In Javascript hello stimart , on the sample html page you need to use the 'onbeforeunload' event on body tag to do a 'window.… Written By Anonymous Friday, November 10, 2017 Add Comment Edit