You can change the src property at any time. The following example displays an image and three radio buttons. The user can click the radio buttons to choose which image is displayed. A string specifying a margin in pixels between the top and bottom edges of an image and the surrounding text. For images created with the Image constructor, the value of the vspace property is 0.
Examples See the examples for the height property.
A string specifying the width of an image in pixels. For images created with the Image constructor, the value of the width property is the actual, not the displayed, width of the image. Examples See the examples for the height property. Invokes the handler for the specified event. Parameters event The name of an event for which the specified object has an event handler.