FORM HTML Element

The FORM element specifies that the contained controls are part of a form. This is a block element and requires a closing tag.

Attributes

Attribute Value Description
ACTION URL Specifies the URL FORM content being sent for processing.
CLASS   Associates the element with a CSS style.
Note   Supported only for devices running Windows Mobile 2003 software or later.
ENCTYPE MIME Always defaults to application/x-www-form-urlencoded, because INPUT TYPE=FILE is not supported.
ID   Uniquely identifies the element within a document.
Note   Supported only for devices running Windows Mobile 2003 software or later.
METHOD Get Specifies how form data is sent to the server, appends arguments to the action URL, and opens it like an anchor. If the ACTION attribute contains a question mark and a query string, Pocket Internet Explorer sends the action URL (including its question mark and query string) along with the arguments.
METHOD Post Sends data through an HTTP Post transaction.
NAME String Specifies the FORM name so that script can refer to it.
ONRESET   An event that occurs when a form is reset.
Note   Supported only for devices running Windows Mobile 2002 software or later.
ONSUBMIT   An event that occurs when a form is submitted.
Note   Supported only for devices running Windows Mobile 2002 software or later.
STYLE   Provides the definition of the CSS styles used for this element.
Note   Supported only for devices running Windows Mobile 2003 software or later.
TARGET _blank Causes Pocket Internet Explorer to navigate the topmost document to the HREF.
Note   Not supported for Windows Mobile-based Smartphones.
TARGET _parent Causes the immediate parent of the frame to navigate to the HREF.
Note   Not supported for Windows Mobile-based Smartphones.
TARGET _top Causes Pocket Internet Explorer to navigate the topmost document to the HREF.
Note   Not supported for Windows Mobile-based Smartphones.

Requirements

Smartphone: Windows Mobile 2002 and later
OS Versions: Windows CE 3.0 and later

Last updated on Friday, April 22, 2005

© 2005 Microsoft Corporation. All rights reserved.

Send feedback on this topic to the authors.