onbeforeunload=function(){ location.reload(); return " ..."; }; onload=function(){ location.reload(); }
Source: https://habr.com/ru/post/243963/