title: Inline onerror not working in Firefox
body: <p>Am new to javascript so take it easy xP</p>
  
  <p>Anyway ive been working on a store for a client, everything seems to work fine but the onerror event in the product image slider doesnt seem to want to work in mozilla firefox.</p>
  
  <p>ive used the inline onerror </p>
  
  <pre><code>&lt;img onError="this.src='replacmentimg.jpg'" src="[galleryurl1]" id="photo51" class="thumb"&gt;
  </code></pre>
  
  <p>ive also tried the other ways such as</p>
  
  <pre><code>&lt;img  onerror="photo5()" src="[galleryurl1]" id="photo51" class="thumb"&gt;
  </code></pre>
  
  <p><Pre>function photo5(){
  document.getElementById("photo51").setAttribute('src', 'replacmentimg.jpg');}</pre>    </p>
  
  <p>It works in every other browser But Mozilla, If anyone can help me it would be much appricated</p>