3 var event
= document
.createEvent('MouseEvent');
4 event
.initEvent( 'click', true, true );
5 document
.getElementById('anchorLink').dispatchEvent(event
);
8 function didImageLoad()
10 var result
= document
.getElementById("result");
12 var myImg
= document
.getElementById("myImg");
13 if (myImg
.height
== 0 && myImg
.width
== 0) {
14 result
.innerHTML
= "Image NOT loaded.";
16 result
.innerHTML
= "Image loaded.";