title: jQuery console.log() vs alert()
body: <p>jQuery code:</p>
  
  <pre><code>$(document).bind('click', function(e) {
      console.log(e.target);
      alert(e.target);
  });
  </code></pre>
  
  <p>The <code>e.target</code> contains the name of the object which is being clicked. 
  For demonstration purposes, if I click on an input element, the above code prints the following : <br/>
  For <code>console.log()</code>:</p>
  
  <pre><code>&lt;input class="buton" type="submit" value="Send" name="Send"&gt;
  </code></pre>
  
  <p>For <code>alert()</code>:</p>
  
  <pre><code>[object HTMLInputElement]
  </code></pre>
  
  <p>However, if I replace <code>console.log(e.target)</code> with <code>console.log(e.target.toString())</code>, it prints the same thing as <code>alert()</code>, meaning:</p>
  
  <pre><code>[object HTMLInputElement]
  </code></pre>
  
  <p>My scope is to store the HTML code returned by <code>console.log()</code> into a variable, but I can't understand the behaviour. </p>