file_new_shentry_during_history_navigation_4.html (540B)
1 <script> 2 window.onpageshow = function(e) { 3 let bc = new BroadcastChannel("new_shentry_during_history_navigation"); 4 bc.onmessage = function(event) { 5 bc.close(); 6 if (event.data == "loadnext") { 7 location.href = "file_new_shentry_during_history_navigation_3.html?v2"; 8 } else if (event.data == "forward") { 9 history.forward(); 10 } else if (event.data == "close") { 11 window.close(); 12 } 13 } 14 bc.postMessage({page: location.href, type: e.type, persisted: e.persisted}); 15 } 16 </script>