file_bug1583110.html (644B)
1 <html> 2 <head> 3 <script> 4 var bc; 5 window.onpageshow = function(pageshow) { 6 bc = new BroadcastChannel("bug1583110"); 7 bc.onmessage = function(event) { 8 bc.close(); 9 if (event.data == "loadnext") { 10 location.search = "?nextpage"; 11 } else if (event.data == "back") { 12 history.back(); 13 } 14 } 15 bc.postMessage({type: "pageshow", persisted: pageshow.persisted }); 16 if (pageshow.persisted) { 17 document.body.appendChild(document.createElement("iframe")); 18 bc.close(); 19 window.close(); 20 } 21 } 22 </script> 23 </head> 24 <body> 25 </body> 26 </html>