Advertisement
julong

add div inside renderer

Jul 28th, 2014
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. // info
  2. var info = document.getElementById( 'hello' );
  3. info.style.position = 'absolute';
  4. info.style.right = '20px';
  5. info.style.top = '20px';
  6. info.style.color = '#ffffff';
  7. info.innerHTML = "This is my div!";
  8. document.body.appendChild( info );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement