title: How to write inside a DIV box with javascript
body: <p>I'm making a mini-game where a player attacks a npc and in the center is a white box (div) that I call (log), because when the player damages/attacks the npc, I want to be able for that open white space to log what happened.</p>
  
  <p>I'm using the getElementById(log) and then adding something along the lines of "document.write("You attacked X npc"), but its not working.</p>
  
  <p>Any idea on how I can get text INSIDE the box and not outside it? Thanks</p>