<!DOCTYPE html> <html> <head> <script type="text/javascript"> function boom() { var i = document.getElementById("i"); i.contentDocument.designMode = "on"; i.previousSibling.data += "x\n"; i.style.counterReset = "c"; } </script> </head> <body onload="boom();">‮<iframe id="i" src="data:text/html,a"></body> </html>