title: I'm trying to use Javascript to display an image
body: <p>I am trying to make a tic tac toe game. I'm using images instead of Xs and Os, so I need to fill in a td with an image when it is clicked on. I tried this:</p>
  
  <pre><code>function makeDuck(place){
      //this is just so I know the other methods work
      alert("duck");            
      //This is the line I need help with 
      window.location.write('&lt;img src="smallDuck.jpg" width="70" height="70"/&gt;'); 
      squares[place] = 1;
  }
  
  function makeBeaver(place){
      //this is just so I know the other methods work
      alert("beaver"); 
      //This is the line I need help with           
      document.zero.write('&lt;img src="smallBeaver.jpg" width="80" height="80"/&gt;');
      squares[place] = 2;
  }
  </code></pre>