blob: 3a7a22776006b6974fe2bdb4f19249f52e842b93 [file] [log] [blame]
function clickAnchor()
{
var event = document.createEvent('MouseEvent');
event.initEvent( 'click', true, true );
document.getElementById('anchorLink').dispatchEvent(event);
}
function didImageLoad()
{
var result = document.getElementById("result");
var myImg = document.getElementById("myImg");
if (myImg.height == 0 && myImg.width == 0) {
result.innerHTML = "Image NOT loaded.";
} else {
result.innerHTML = "Image loaded.";
}
}