document.write(''); document.write("This should be a span: " + document.getElementById('x'));