file_bug209275_1.html (571B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <base href="http://example.org" /> 5 </head> 6 <body onload="load();"> 7 Initial state 8 9 <script> 10 function load() { 11 // Nuke and rebuild the page. 12 document.removeChild(document.documentElement); 13 var html = document.createElement("html"); 14 var body = document.createElement("body"); 15 html.appendChild(body); 16 var link = document.createElement("a"); 17 link.href = "#"; 18 link.id = "link"; 19 body.appendChild(link); 20 document.appendChild(html); 21 22 // Tell our parent to have a look at us. 23 parent.gGen.next(); 24 } 25 </script> 26 27 </body> 28 </html>