Answer: in the script type we have to attach load method to an html element, load() method is used for the load function
Example:
<script type="text/javascript">
<img id="imgLoad" src="http://www.itfunda.com/Images/itfunda.gif" />
$("#imgLoad").load(function () {
alert("ITFunda.Com Logo loaded");
});
</script>
when the image will be loaded completely then user will be alerted from the above example
Asked In: spotted while learning |
Alert Moderator