title: Check if page gets reloaded or refreshed in JavaScript
body: <p>I want to check when someone tries to refresh a page.</p>
  
  <p>For example, when I open a page nothing happens but when I refresh the page it should display an alert.</p>