file_document_write_1.html (460B)
1 <html> 2 <head> 3 <script> 4 function start() { 5 var length = history.length; 6 document.open(); 7 document.write("<h5 id='dynamic'>document.written content</h5>"); 8 document.close(); 9 opener.is(history.length, length, 10 "document.open/close should not change history"); 11 opener.finishTest(); 12 } 13 </script> 14 </head> 15 <body onload="start();"> 16 <h5>static content</h5> 17 </body> 18 </html>