Thursday, April 4, 2013

Javascript Image Object Methods


The Image object represents an embedded image.

Image Object Properties
Align Sets or returns how to align an image according to the surrounding text
Alt Sets or returns an alternate text to be displayed, if a browser cannot show an image
Border Sets or returns the border around an image
Complete Returns whether or not the browser has finished loading the image
Height Sets or returns the height of an image
Hspace Sets or returns the white space on the left and right side of the image
Id Sets or returns the id of the image
isMap Returns whether or not an image is a server-side image map
longDesc Sets or returns a URL to a document containing a description of the image
Lowsrc Sets or returns a URL to a low-resolution version of an image
Name Sets or returns the name of an image
Src Sets or returns the URL of an image
useMap Sets or returns the value of the usemap attribute of an client-side image map
Vspace Sets or returns the white space on the top and bottom of the image
Width Sets or returns the width of an image

No comments:

Post a Comment