Code has been added to clipboard!

Adding Text to JavaScript Elements

Example
var textNode = document.createTextNode("Unexpected text!");