Skip to content

Instantly share code, notes, and snippets.

@graybill
Created February 4, 2010 19:03
Show Gist options
  • Save graybill/294982 to your computer and use it in GitHub Desktop.
Save graybill/294982 to your computer and use it in GitHub Desktop.
var ttmessage = document.getElementById("ttmessage");
var span = document.createElement("span");
var text = "test message here!";
span.appendChild(text);
ttmessage.appendChild(span);
ttmessage.setAttribute("style", "display:block");
console.log(ttmessage);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment