Methods and Properties of the Image Object : Image Img « HTML « JavaScript DHTML
- JavaScript DHTML
- HTML
- Image Img
Methods and Properties of the Image Object
+---------+----------------+-------------------------------------------------+
Type Item Description
+---------+----------------+-------------------------------------------------+
Method
+---------+----------------+-------------------------------------------------+
handleEvent() This method invokes the handler for the specified
event.
+---------+----------------+-------------------------------------------------+
Property
+---------+----------------+-------------------------------------------------+
border Width of border around the image.
+---------+----------------+-------------------------------------------------+
complete Tells you if the image has finished loading.
+---------+----------------+-------------------------------------------------+
height Height of the image.
+---------+----------------+-------------------------------------------------+
hspace Padding on left and right of the image.
+---------+----------------+-------------------------------------------------+
lowsrc Alternate image for low-resolution displays.
+---------+----------------+-------------------------------------------------+
name Name of the image.
+---------+----------------+-------------------------------------------------+
src URL of the image.
+---------+----------------+-------------------------------------------------+
vspace Padding on top and bottom of the image.
+---------+----------------+-------------------------------------------------+
width Width of the image.
+---------+----------------+-------------------------------------------------+
Related examples in the same category