title: How does one use the onerror attribute of an img element
body: <p>CSS:</p>
  <pre class="lang-css prettyprint-override"><code>.posting-logo-div {
  }
  .posting-logo-img {
    height: 120px;
    width: 120px;
  }
  .posting-photo-div {
    height: 5px;
    width: 5px;
    position: relative;
    top: -140px;
    left: 648px;
  }
  .posting-photo-img {
    height: 240px;
    width: 240px;
  }
  </code></pre>
  <p>HTML:</p>
  <pre class="lang-html prettyprint-override"><code>&lt;div id=&quot;image&quot; class=&quot;posting-logo-div&quot;&gt;
    &lt;img
      src=&quot;../images/some-logo1.jpg&quot;
      onerror=&quot;this.src='../images/no-logo-120.jpg';&quot;
      class=&quot;posting-logo-img&quot;
    /&gt;
  &lt;/div&gt;
  &lt;div id=&quot;photo&quot; class=&quot;posting-photo-div&quot;&gt;
    &lt;img
      src=&quot;../images/some-logo2.jpg&quot;
      onerror=&quot;this.src='../images/no-logo-240.jpg';&quot;
      class=&quot;posting-photo-img&quot;
    /&gt;
  &lt;/div&gt;
  </code></pre>
  <p>This doesn't seem to work in Chrome or Mozilla but does work in IE.</p>