1window.onload = function() {
2 var reloading = sessionStorage.getItem("reloading");
3 if (reloading) {
4 sessionStorage.removeItem("reloading");
5 myFunction();
6 }
7}
8
9function reloadP() {
10 sessionStorage.setItem("reloading", "true");
11 document.location.reload();
12}