javascript detect a page refresh code example
Example 1: javascrpt refresh page
location.reload();
Example 2: javascript refresh page automatically
<meta http-equiv="refresh" content="30"/>
location.reload();
<meta http-equiv="refresh" content="30"/>