Share via


INPUT TYPE=image XHTML Element

Send Feedback

The INPUT TYPE=image element creates an image control that, when clicked, causes the form to be submitted immediately.

The click coordinates are measured from the upper-left of the image. They are submitted with the form as two name or value pairs. The x or y coordinate is submitted under the name of the control with the x or y appended.

Using this Element

There are some common properties and collections that apply to all the elements of the document object model, see Common Properties for All DOM Elements in Internet Explorer Mobile.

This element can be used within a web page with attributes.

This element can be used within scripts where it will have properties, events and methods.

Attributes

Attribute Value PPC SP Description
ALIGN   Yes Yes Specifies text alignment following the IMG reference relative to the graphic on the screen.
Note   Supported only for devices running PocketPC 2002 and Smartphone 2002 software or later.
  bottom Yes Yes  
  left Yes Yes  
  middle Yes Yes  
  right Yes Yes  
  top Yes Yes  
HEIGHT 0...# Yes Yes Specifies the image height in pixels or as a percentage of the parent object.
NAME String Yes Yes Specifies the image control name.
ONCLICK   Yes Yes Event that occurs when the user chooses the image control.
Note   Supported only for devices running PocketPC 2002 and Smartphone 2002 software or later.
SRC URL Yes Yes Specifies the image URL to be loaded by the image control.
TABINDEX   Yes Yes Sets the order in which elements are tabbed to.
Note   Supported only for devices running Windows Mobile 2003 software or later.
VALIGN Yes Yes Specifies text alignment following the IMG reference relative to the graphic on the screen.
Note   Supported only for devices running PocketPC 2002 and Smartphone 2002 software or later
  bottom Yes Yes  
  middle Yes Yes  
  top Yes Yes  
WIDTH 0...# Yes Yes Specifies the width of the image in pixels or as a percentage of the parent object.

Scripting Properties

This element has no associated properties.

Scripting Events

This element has no associated events.

Scripting Methods

This property has no associated methods.

Requirements

Pocket PC: Windows Mobile 5.0 and later
Smartphone: Windows Mobile 5.0 and later
OS Versions: Windows CE 5.01 and later

See Also

XHTML Elements

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.