212563-2.html (631B)
1 <html class="reftest-wait"> 2 <head> 3 <script type="text/javascript"> 4 5 function p(n) 6 { 7 dump("Test 212563-2 says: " + n + "\n"); 8 } 9 10 // Step 1: replace the innermost frame 11 function changeInnermost(iframeElement) 12 { 13 iframeElement.setAttribute("src", "212563-2-innermost-a.html"); 14 } 15 16 // Step 2: replace the middle iframe (from the new innermost iframe's onload handler) 17 var replacementForMiddleFrame = "<body onload=top.p(5);parent.document.documentElement.removeAttribute('class');>replacement for middle frame<script>top.p(2);<\/script><\/body>"; 18 19 </script> 20 </head> 21 <body> 22 <iframe src="212563-2-inner.html"></iframe> 23 </body> 24 </html>