Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




Attribute for <IMG ...>
onLoad = "script command(s)"

The onLoad event is fired when the image is finished being downloaded. For example, the following code displays an alert box when the image is downloaded:

  SRC="../graphics/pumpkin.gif" ALT="picture of a pumpkin"
  HEIGHT=100 WIDTH=100 

which gives us

picture of a pumpkin

Unfortunately, onLoad is not a very reliable event handler. Netscape particularly has trouble firing onLoad when the image is malformed in some way or if the image is loaded from cache instead of freshly downloaded from the net.

  Copyright 1997-2002 Idocs inc. Published under the terms of the Open Content License Design by Interspire