<!DOCTYPE html> <html> <body onload="document.getElementById('foo').appendChild(document.createTextNode('Second line of text'))"> There should be text below this line: <div style="display: table-row" id="foo"></div> </body> </html>