title: How to fix "Error: Object doesn't support this property or method" javascript error in Internet Explorer?
body: <p>On this page with captcha demo:</p>
  
  <p><a href="http://www.tutorialcadet.com/demo/ajaxform/" rel="nofollow">http://www.tutorialcadet.com/demo/ajaxform/</a></p>
  
  <p>the captcha image is not refreshing (when clicking on the image) in internet explorer. In firefox. chrome, opera it works fine.</p>
  
  <p>It throws in explorer this popu up error:</p>
  
  <pre><code>Line: 155
  Error: Object doesn't support this property or method
  </code></pre>
  
  <p>Then when I check the source code in explorer I see this on line 155:</p>
  
  <pre><code>&lt;td&gt;&lt;div id="captchaimage"&gt;&lt;a href="SITE_BASE/register/" id="refreshimg" onclick="refreshimg(); return false;" title="Click to refresh image"&gt;&lt;img src="captcha/image.php?1311183335" alt="Captcha image" width="132" height="46" align="left" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;
  </code></pre>
  
  <p>Then when I click on the image again, another error popup shows up:</p>
  
  <pre><code>Line: 1
  Error: Object doesn't support this property or method
  </code></pre>
  
  <p>When I view the source code I see a ?blank row? on the first row. 
  Here is the screen what I mean by blank first row:</p>
  
  <p><a href="http://i54.tinypic.com/23ves1j.jpg" rel="nofollow">http://i54.tinypic.com/23ves1j.jpg</a></p>
  
  <p>Any suggestion how to solve this? This happens only in internet explorer. I am currently using 9. Is this some kind of internet explorer bug or?</p>