title: onerror event to html tag object
body: <p>In the below code, all the onerror event are working fine except the one mentioned in the "Object" tag. There is no file with the name "helloworld.swf" but the onerror event is not triggered. Can anyone please explain this.</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script type="text/javascript"&gt;
  &lt;!--
  window.onerror = function (msg, url, line) {
     alert("Message : " + msg );
     alert("url : " + url );
     alert("Line number : " + line );
  }
  //--&gt;
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;p&gt;Click the following to see the result:&lt;/p&gt;
  &lt;form&gt;
  &lt;input type="button" value="Click Me" onclick="myFunc1();" /&gt;&lt;br/&gt;
  &lt;input type="text" dir="rtl"&gt;
  &lt;/form&gt;
  &lt;object width="400" height="400" data="helloworld.swf" onerror="alert('helloworld.swf not found')"&gt;&lt;br/&gt;
  &lt;/object&gt;
  &lt;img src="myimage.gif" onerror="alert('image not found')"/&gt;&lt;br/&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>P.S : Refer to link "<a href="http://www.w3schools.com/jsref/event_onerror.asp" rel="nofollow">http://www.w3schools.com/jsref/event_onerror.asp</a>" which clearly says onerror event is supported by "object" HTML tag.</p>