FORM XHTML Element (Windows Embedded CE 6.0)
1/6/2010
The FORM element specifies that the contained controls are part of a form. This is a block element and requires a closing tag.
Using this Element
There are some common properties and collections that apply to all the elements of the document object model, see Common Properties, Methods and Collections for the HTML Elements in Internet Explorer.
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
The following table shows items that Internet Explorer Embedded supports.
Attribute | Value | Description |
---|---|---|
ACTION |
URL |
Specifies the URL to which the FORM content is to be sent for processing. |
CLASS |
|
Associates the element with a CSS style. |
ENCTYPE |
MIME |
Note:
Always defaults to application/x-www-form-urlencoded since INPUT TYPE=FILE is not supported.
|
ID |
|
Uniquely identifies the element within a document. |
METHOD |
|
Specifies how the form data is sent to the server. |
|
get |
Append the arguments to the action URL and open it as if it were anchor. If the ACTION contains a question mark and a query string, when submitted the browser sends the action URL (including its question mark and query string) along with the arguments. |
|
post |
Sends the data through an HTTP post transaction. |
NAME |
String |
Specifies the name for the FORM so that it can be referred to from script. |
ONRESET |
|
An event that occurs when a form is reset. |
ONSUBMIT |
|
An event that occurs when a form is submitted. |
STYLE |
|
Provides the definition of the CSS styles used for this element. |
TARGET |
|
|
|
_blank |
Causes Internet Explorer Embedded to navigate the topmost document to the HREF. |
|
_parent |
Causes the immediate parent of the frame to navigate to the HREF. |
|
_self |
|
|
_top |
Causes Internet Explorer Embedded to navigate the topmost document to the HREF. |
Scripting Properties
The following table shows items that Internet Explorer Embedded supports
Property | Type | Access | Comments |
---|---|---|---|
action |
string |
Read/Write |
Sets or retrieves the URL to which the FORM content is sent for processing |
encoding |
string |
Read/Write |
Read only property which retrieves the MIME encoding for the form. The value is always “application/x-www-form-urlencoded”. |
length |
long |
Read |
|
method |
string |
Read/Write |
Read/write property which specifies how the form data is sent to the server. The only valid values are “post” and get”. |
name |
string |
Read |
Read only property that retrieves the name of the FORM. |
offsetHeight |
Number |
Read-only |
Contains the height of the object in pixels, relative to the parent element. |
offsetLeft |
Number |
Read-only |
Contains the number of pixels from the left of the parent element. |
offsetParent |
String |
Read-only |
Contains a reference to the container object that defines the offsetTop and offsetLeft properties of the object. |
offsetTop |
Number |
Read-only |
Contains the number of pixels from the top of the parent element |
offsetWidth |
Number |
Read-only |
Contains the width of the object in pixels, relative to the parent element. |
target |
string |
Read/Write |
Read/write property that sets or retrieves the TARGET of the FORM. See FORM TARGET attribute for the possible values and behavior. |
Scripting Events
The following table shows items that Internet Explorer Embedded supports
Event | Comment |
---|---|
onreset |
This event fires when a form reset is initiated by the user. |
onsubmit |
This event fires when a form is about to be submitted. Note: this event only fires when the submit is initiated by the user. It will not fire if the submit() method is called on the form. |
Scripting Methods
The following table shows items that Internet Explorer Embedded supports.
Method | Arguments | Comments |
---|---|---|
getAttribute |
|
syntax:
|
reset |
|
syntax:
|
submit |
|
syntax:
|
Scripting Collections
The following table shows items that Internet Explorer Embedded supports.
Collections | Arguments | Support | Comments |
---|---|---|---|
elements |
object |
Yes |
Collection of all the controls in a given form. Note that for browser syntax:
|
length |
long |
Read |
Contains the number of elements in the elements collection. |
item |
([optional] variant name, [optional] variant index) |
Yes |
|
Requirements
Windows Embedded CE | Windows Embedded CE 6.0 R3 |