Connected: An Internet Encyclopedia
RFC 1866 - 8.1.2.5. Image Pixel: INPUT TYPE=IMAGE

Top: Connected: An Internet Encyclopedia
Up: Requests For Comments
Up: RFC 1866
Up: 8. Forms
Up: 8.1. Form Elements
Up: 8.1.2. Input Field: INPUT
Prev: 8.1.2.4. Radio Button: INPUT TYPE=RADIO
Next: 8.1.2.6. Hidden Field: INPUT TYPE=HIDDEN

### 8.1.2.5. Image Pixel: INPUT TYPE=IMAGE

An <INPUT> element with `TYPE=IMAGE' specifies an image resource to display, and allows input of two form fields: the x and y coordinate of a pixel chosen from the image. The names of the fields are the name of the field with `.x' and `.y' appended. `TYPE=IMAGE' implies `TYPE=SUBMIT' processing; that is, when a pixel is chosen, the form as a whole is submitted.

The NAME attribute is required as for other input fields. The SRC attribute is required and the ALIGN is optional as for the <IMG> element (see 5.10, "Image: IMG").

For example:

        <p>Choose a point on the map:
        <input type=image name=point src="map.gif">

Next: 8.1.2.6. Hidden Field: INPUT TYPE=HIDDEN

Connected: An Internet Encyclopedia
RFC 1866 - 8.1.2.5. Image Pixel: INPUT TYPE=IMAGE