title: how to show alternate image if source image is not found? (onerror working in IE but not in mozilla)
body: <p>I need to show an alternate image in cell of table if source image is not found.
  Currently below code is used to do so.</p>
  
  <pre><code>cell.innerHTML="&lt;img height=40 width=40 src='&lt;%=request.getContextPath()%&gt;/writeImage.htm' onError='ImgErrorVideo(this);'&gt;" 
  function ImgErrorVideo(source){
          source.src = "video.png";
          source.onerror = ""; 
          return true; 
  }
  </code></pre>
  
  <p>Now the problem is that the above is solution is working in Internet Explorer but not in mozilla.</p>
  
  <p>Please tell me some solution which works in all browsers.</p>