title: printing an image in HTML5/Javascript
body: <p>I am new in the web development world and I had the following question</p>
  
  <p>I would like to implement a button in HTML5 that will Print an Image ( and not the whole HTML Page)</p>
  
  <p>I tried the code in this question <a href="https://stackoverflow.com/questions/11894428/print-image-on-website">Print image on website</a></p>
  
  <p>but I got an unhandled exception :</p>
  
  <pre><code>0x800a138f - Microsoft JScript runtime error : Umable to get value of the property 'innerHTML':object is null or undefined
  </code></pre>
  
  <p>can anyone guide me how to do this ?</p>
  
  <p>Thanks!</p>
  
  <p>Edit : When I say print , I mean prininting on a physical printer , and not displaying on the screen</p>