Properties
This section describes the properties supported by Document Object Model (DOM) objects associated with HTML elements and supporting objects.
In this section
| Topic | Description |
|---|---|
|
Sets or retrieves abbreviated text for the object. | |
|
Sets or retrieves a comma-separated list of content types. | |
|
Sets or retrieves a list of character encodings for input data that must be accepted by the server processing the form. | |
|
Sets or retrieves the access key for the object. | |
|
Sets or retrieves the URL to which the form content is sent for processing. | |
|
Gets the object that has the focus when the parent document has focus. | |
|
Returns a null value. | |
|
Sets or gets the color of all active links in the document. | |
|
Note
all is no longer supported. Starting with Internet Explorer 11, use getElementById. For info, see Compatibility changes.
Returns a reference to the collection of elements contained by the object. | |
|
Enables content in an iframe to be displayed in full-screen mode. | |
|
Enables content in an iframe to be displayed as a payment request. | |
|
Sets or retrieves whether the object can be transparent. | |
|
Sets or retrieves a text alternative to the graphic. | |
|
Gets or sets the optional alternative HTML script to execute if the object fails to load. | |
|
Returns the element or node that contains the start of the selection. | |
|
Retrieves the starting position of a selection that is relative to the anchorNode / baseNode. | |
|
Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order. | |
|
Retrieves a collection of all applet objects in the document. | |
|
Sets or gets the name of the HTML Application (HTA). This property is not supported for Windows apps using JavaScript. | |
|
Sets or retrieves a character string that can be used to implement your own archive functionality for the object. | |
|
Provides control of when a script executes while a document loads. | |
|
Specifies whether the element and its contents must be selected as a whole, indivisible unit. | |
|
Retrieves the collection of attributes belonging to the object. | |
|
Retrieves a collection of attributes of the object. | |
|
Sets or retrieves the status of AutoComplete for an object. This property is not supported for Windows apps using JavaScript. | |
|
Specifies whether autocomplete is applied to an editable text field. | |
|
Provides a way to direct a user to a specific field when a document loads. | |
|
Sets or retrieves the background picture tiled behind the text and graphics in the object. | |
|
Sets or gets the value indicating how the volume of the background sound is divided between the left speaker and the right speaker. | |
|
Retrieves a string of the URL where the object tag can be found. This is often the href of the document that the object is in, or the value set by a base element. | |
|
Sets the background color behind an object. | |
|
Sets or gets the properties of the background picture. | |
|
Gets an interface pointer to the document body object. | |
|
Sets or retrieves the width of the border to draw around the object. | |
|
Sets or retrieves the space between the frames, including the 3-D border. | |
|
Sets or retrieves the border color of the object. | |
|
Sets or retrieves the color for one of the two colors used to draw the 3-D border of the object. | |
|
Sets or retrieves the color for one of the two colors used to draw the 3-D border of the object. | |
|
Set or retrieves the bottom coordinate of the rectangle surrounding the object content. | |
|
Sets or gets the bottom margin of the entire body of the document. | |
|
Returns a collection of all elements on the page bound to a data set. | |
|
Retrieves the current operating system language. Note This property does not indicate the language or languages set by the user in Language Preferences, located in the Internet Options dialog box.
| |
|
Gets a value indicating whether the object can contain child objects. | |
|
Retrieves the value indicating whether the object can contain rich HTML markup. | |
|
Retrieves the position of the object in the cells collection of a row. | |
|
Retrieves a collection of all cells in the table row or in the entire table. | |
|
Sets or retrieves a value that you can use to implement your own ch functionality for the object. | |
|
Gets the name of the character set that is used to encode the document. | |
|
Sets or retrieves the character set used to encode the object. | |
|
Sets or retrieves the state of the check box or radio button. | |
|
Retrieves a collection of DHTML Objects that are direct descendants of the object. | |
|
Sets or retrieves a value that you can use to implement your own chOff functionality for the object. | |
|
Sets or retrieves reference information about the object. | |
|
The class is typically used to associate a particular style rule in a style sheet with the element. | |
|
Returns a DOMTokenList that represents the className attribute value expressed as a string. | |
|
Sets or retrieves the class of the object. | |
|
Sets or retrieves the side on which floating objects are not to be positioned when any IHTMLBlockElement is inserted into the document. | |
|
Retrieves the height of the object including padding, but not including margin, border, or scroll bar. | |
|
Retrieves the distance between the offsetLeft property and the true left side of the client area. | |
|
Retrieves the distance between the offsetTop property and the true top of the client area. | |
|
Retrieves the width of the object including padding, but not including margin, border, or scroll bar. | |
|
Sets or retrieves the color to be used by the object. | |
|
Sets or retrieves the number of columns in the table. | |
|
Sets or retrieves the frame widths of the object. This property is not supported for Windows apps using JavaScript. | |
|
Sets or retrieves the width of the object. | |
|
Sets or retrieves the number columns in the table that the object should span. | |
|
Retrieves the collection of user agents and versions declared in the | |
|
Gets a value that indicates whether standards-compliant mode is switched on for the object. | |
|
Retrieves whether the object is fully loaded. | |
|
Gets or sets meta-information to associate with httpEquiv or name. | |
|
Returns the contents of a template element | |
|
Retrieves the document object of the page or frame. | |
|
Sets or retrieves the string that indicates whether the user can edit the content of the object. | |
|
Retrieves the window object of the specified frame or iframe. | |
|
A collection of elements returned by the createControlRange or createRange method. | |
|
Sets or gets the string value of a cookie. | |
|
Sets or retrieves the coordinates of the object. | |
|
Retrieves the number of available block format tags. | |
|
Returns whether the input field has raised a custom error. | |
|
Sets or retrieves the URL that references the data of the object. | |
|
Sets or gets the value of a TextNode object. | |
|
Sets or retrieves a field of a given data source, as specified by the dataSrc property, to bind to the specified object. | |
|
Sets or retrieves the rendering format for the data supplied to the object. | |
|
Sets or retrieves the number of records displayed in a table bound to a data source. | |
|
Sets or retrieves the source of the data for data binding. | |
|
Sets or retrieves the date and time of a modification to the object. | |
|
Gets the default character set from the current regional language settings. | |
|
Sets or retrieves the state of the check box or radio button. | |
|
Sets or retrieves the status of an option. | |
|
Sets or retrieves the initial contents of the object. | |
|
Gets a reference to the window object for the document. | |
|
Sets or retrieves the status of the script. | |
|
Sets or gets a value that indicates whether the document can be edited. | |
|
Sets or retrieves the reading order of the object. | |
|
Sets or retrieves a value that indicates the reading order of the object. | |
|
Sets or retrieves a value that indicates whether the user can interact with the object. | |
|
Sets or gets the value that indicates whether the user can interact with the object. | |
|
Gets an object that represents the document type declaration that is associated with the current document. | |
|
Retrieves the HTML document in a given popup window. This property is not supported for Windows apps using JavaScript. | |
|
Gets a reference to the root node of the document. | |
|
Retrieves the document compatibility mode of the document. | |
|
Sets or gets the security domain of the document. | |
|
Sets or gets whether an element can be dragged on a document. | |
|
Sets or gets the type of drag-and-drop operation and the type of cursor to display. | |
|
Sets or gets which data transfer operations are allowed for the object on the source element. | |
|
Retrieves a collection, in source order, of all controls in a given form. input type=image objects are excluded from the collection. | |
|
Retrieves a collection of all embed objects in the document. | |
|
Sets or retrieves the MIME encoding for the form. | |
|
Sets or retrieves the encoding type for the form. | |
|
Sets or gets the foreground (text) color of the document. | |
|
Specifies the character used to mark the end of data fields. | |
|
Retrieves the date the file was created. | |
|
Retrieves the date the file was last modified. | |
|
Returns a FileList object on a file type input object. | |
|
Note
fileSize is no longer supported. Starting with IE11, use XMLHttpRequest to get the resource. For info, see Compatibility changes.
Retrieves the file size. | |
|
Retrieves the date the file was last updated. | |
|
Retrieves the element or node that contains the end of a selection. | |
|
Retrieves the end position of a selection that is relative to the focusNode / extentNode. | |
|
Specifies the IDs of the elements from which the output was calculated. | |
|
Retrieves a reference to the form that the object is embedded in. | |
|
Overrides the action attribute (where the data on a form is sent) on the parent form element. | |
|
Used to override the encoding (formEnctype attribute) specified on the form element. | |
|
Overrides the submit method attribute previously specified on a form element. | |
|
Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. | |
|
Retrieves a collection, in source order, of all form objects in the document. | |
|
Overrides the target attribute on a form element. | |
|
Retrieves the frame or iframe object that is hosting the window in the parent document. | |
|
Retrieves a collection of all window objects defined by the given document or defined by the document associated with the given window. | |
|
Sets or retrieves the amount of additional space between the frames. | |
|
Gets the head element of the document. | |
|
Sets or retrieves a list of header cells that provide information for the object. | |
|
Sets or retrieves the height of the object. | |
|
Sets or retrieves the value indicating whether the embedded object is invisible. | |
|
Sets or gets the value that indicates whether the object visibly shows that it has focus. | |
|
Specifies the high range for a meter element. | |
|
Sets or retrieves a destination URL or an anchor point. | |
|
Gets or sets the baseline URL on which relative links are based. | |
|
Sets or retrieves the language code of the object. | |
|
Sets or retrieves the object to which the given label object is assigned. | |
|
Sets or retrieves the object that is bound to the event script. | |
|
Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header. | |
|
Sets or retrieves the string identifying the object. | |
|
Retrieves a collection, in source order, of img objects in the document. | |
|
Gets the implementation object of the current document. | |
|
Sets or retrieves whether the user has changed the status of a input type=checkbox element. On a HTMLProgressElement element will show activity but not a specific amount. | |
|
Sets or retrieves the ordinal position of an option in a list box. | |
|
Sets or retrieves the HTML between the start and end tags of the object. | |
|
Sets or retrieves the text between the start and end tags of the object. | |
|
Retrieves whether a selection is collapsed or empty. | |
|
Gets the value that indicates whether the user can edit the contents of the object. | |
|
Gets the value that indicates whether the user can interact with the object. | |
|
Sets or retrieves whether the image is a server-side image map. | |
|
Retrieves the value indicating whether the content of the object contains one or more lines. | |
|
Retrieves a value indicating whether the popup window is open. This property is not supported for Windows apps using JavaScript. | |
|
Sets or retrieves the label for the option group. | |
|
Sets or retrieves a value that you can use to implement your own label functionality for the object. | |
|
Lowers the loading priority of a resource. | |
|
Sets or retrieves the language to use. | |
|
Gets the date that the document was last modified, if the document supplies one. | |
|
Sets or gets the left margin for the entire body of the document, which overrides the default margin. | |
|
Gets the number of characters in a TextNode object. | |
|
Sets or retrieves the number of objects in a collection. | |
|
Sets or gets the color of the document links. | |
|
Retrieves a collection of all a objects that specify the href property and all area objects in the document. | |
|
Specifies the ID of a pre-defined datalist of options for an input element. | |
|
Sets or retrieves a Uniform Resource Identifier (URI) to a long description of the object. | |
|
Sets or retrieves the number of times a sound or video clip will loop when activated. | |
|
Specifies the low range for a meter element. | |
|
Sets or retrieves a lower resolution image to display. | |
|
Defines the maximum acceptable value for an input element with type="number". | |
|
Defines the maximum, or "done" value for a progress element. | |
|
Specifies the upper bound of a meter element. | |
|
Retrieves the maximum number of concurrent connections to a Web server. | |
|
Sets or retrieves the maximum number of characters that the user can enter in a text control. | |
|
A media query list to be used within a picture element. | |
|
Sets or retrieves how to send the form data to the server. | |
|
Sets or gets the list of HTTP methods supported by the object. | |
|
Defines the minimum acceptable value for an input element with type="number". | |
|
Specifies what the minimum bound of a meter element. | |
|
Provides a way to declare that an accelerator key has been assigned to an element. | |
|
Turns automatic caps lock warning on or off for validated password input fields. | |
|
When used with the type="file" attribute, allows multiple files to be selected in the file selection dialog. | |
|
Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list. | |
|
Sets or retrieves the name of the object. | |
|
Sets or retrieves a value that indicates the window name. | |
|
Sets or retrieves the frame name. | |
|
Sets or retrieves the value specified in the content attribute of the meta object. | |
|
Retrieves the name of the namespace. | |
|
Sets or retrieves the name of an input parameter for an element. | |
|
The original height of the image resource before sizing. | |
|
The original width of the image resource before sizing. | |
|
Sets or gets whether clicks in this region cause action. | |
|
Sets or retrieves whether the user can resize the frame. | |
|
Designates a form that is not validated when submitted. | |
|
Retrieves the contained object. | |
|
Sets or retrieves whether objects are drawn offscreen before being made visible to the user. | |
|
Retrieves the height of the object relative to the layout or coordinate parent, as specified by the offsetParent property. | |
|
Retrieves the calculated left position of the object relative to the layout or coordinate parent, as specified by the offsetParent property. | |
|
Retrieves a reference to the container object that defines the offsetTop and offsetLeft properties of the object. | |
|
Retrieves the calculated top position of the object relative to the layout or coordinate parent, as specified by the offsetParent property. | |
|
Retrieves the width of the object relative to the layout or coordinate parent, as specified by the offsetParent property. | |
|
Retrieves a value indicating whether the system is online. | |
|
Specifies what the optimal range is for a meter element. | |
|
Retrieves a collection of the option objects in a select object. | |
|
A collection of option objects that represent possible selections for a datalist element. | |
|
Sets or retrieves the object and its content in HTML. | |
|
Sets or retrieves the text of the object. | |
|
Retrieves the palette used for the embedded document. | |
|
Gets a reference to the container object of the window. | |
|
Sets or retrieves the file name or path specified by the object. | |
|
Gets or sets a string containing a regular expression that the user's input must match. | |
|
Returns whether the input field value does not match the rules defined by the pattern attribute. | |
|
Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter. | |
|
Retrieves the URL of the plug-in used to view an embedded document. | |
|
Returns the quotient of value/max when the value attribute is set (determinate progress bar), or -1 when the value attribute is missing (indeterminate progress bar). | |
|
Returns the number of ranges in a selection | |
|
Returns whether a value is greater than the max attribute on an input control. | |
|
A value is less than the min attribute on an input control. | |
|
Sets or retrieves the value indicated whether the content of the object is read-only. | |
|
Retrieves the current state of the object. | |
|
Retrieves a value that indicates the current state of the object. | |
|
Retrieves the current state of the object. | |
|
Gets the URL of the location that referred the user to the current document. | |
|
Sets or retrieves the relationship between the object and the destination of the link. | |
|
When present, marks an element that can't be submitted without a value. | |
|
Sets or gets the right margin for the entire body of the document. | |
|
Sets or retrieves the role for this element. | |
|
Retrieves the position of the object in the rows collection for the table. | |
|
Retrieves a collection of tr (table row) objects from a table object. | |
|
Sets or retrieves the frame heights of the object. | |
|
Sets or retrieves the number of horizontal rows contained in the object. | |
|
Sets or retrieves how many rows in a table the cell should span. | |
|
Enables security restrictions for iframe elements that contain potentially untrusted content. | |
|
Retrieves the x-coordinate of the upper left-hand corner of the window frame, relative to the upper left-hand corner of the screen. | |
|
Retrieves the y-coordinate of the top corner of the client area, relative to the top corner of the screen. | |
|
Retrieves a collection of all script objects in the document. | |
|
Sets or gets a value that indicates whether the scroll bars are turned on or off. | |
|
Retrieves the scrolling height of the object. | |
|
Gets a reference to the element that scrolls in the document. | |
|
Sets or retrieves the distance between the left edge of the object and the leftmost portion of the content currently visible in the window. | |
|
Sets or retrieves the distance between the top of the object and the topmost portion of the content currently visible in the window. | |
|
Retrieves the scrolling width of the object. | |
|
Retrieves the position of the object in the tBody, tHead, tFoot, or rows collection. | |
|
Sets the value indicating whether the source file of a frame or iframe has specific security restrictions applied. This attribute is not supported for Windows Runtime apps using JavaScript. | |
|
Sets or retrieves whether the option in the list box is the default item. | |
|
Sets or retrieves the index of the selected option in a select object. | |
|
Gets the string corresponding to the current selection's direction. | |
|
Gets or sets the end position or offset of a text selection. | |
|
Gets or sets the starting position or offset of a text selection. | |
|
Retrieves a reference to the current window or frame. | |
|
Sets or retrieves the shape of the object. | |
|
Sets or retrieves the size of the control. | |
|
Specifies how large an image will render within a layout. | |
|
Retrieves the ordinal position of the object, in source order, as the object appears in the document's all collection. | |
|
Sets or retrieves the number of columns in the group. | |
|
Gets a value that indicates whether an attribute is explicitly given a value. | |
|
Specifies whether spell checking is applied to an editable text field. | |
|
Sets or gets the URL of a sound to play. | |
|
Sets or retrieves a URL to be loaded by the object. | |
|
Sets or retrieves a URL to be loaded by the object. | |
|
Retrieves the URL to an external file that contains the source code or data. | |
|
Specifies a list of one or more possible images to display based on the pixel density of the user's display, or the viewport width. | |
|
Sets or retrieves when a video clip file should begin playing. | |
|
Sets or retrieves the value indicating whether the control is selected. | |
|
Defines an increment or jump between values that you want to allow the user to enter. | |
|
Returns whether the input field value does not fit the rules given by the step attribute. | |
|
Sets an inline style for the element. | |
|
Sets or retrieves the index that defines the tab order for the object. | |
|
Sets or retrieves whether an element behavior can receive focus and participate in the tabbing sequence. | |
|
Retrieves the tag name of the object. | |
|
Sets or gets the Uniform Resource Name (URN) specified in the namespace declaration. This property is not supported for Windows apps using JavaScript. | |
|
Sets or retrieves the window or frame at which to target content. | |
|
Retrieves a collection of all tBody objects in the table. Objects in this collection are in source order. | |
|
Retrieves or sets the text of the object as a string. | |
|
Sets or retrieves the text content of an HTMLAnchorElement. | |
|
Sets or retrieves the text string specified by the option tag. | |
| Retrieves the tFoot object of the table. | |
| Retrieves the tHead object of the table. | |
|
Sets or retrieves advisory information (a ToolTip) for the object. | |
|
Returns whether an input field's value is longer than is allowed by the maxlength attribute. | |
|
Retrieves the topmost ancestor window. | |
|
Sets or gets the margin for the top of the document. | |
|
Sets or retrieves the MIME type of the object. | |
|
Gets the classification and default behavior of the button. | |
|
Retrieves or initially sets the type of input control represented by the object. | |
|
Specifies when the element type is the output element. | |
|
Sets or retrieves the content type of the resource designated by the value attribute. | |
|
Specifies the file type of the images in the source set. | |
|
Sets or retrieves the MIME type for the associated scripting engine. | |
|
Retrieves the type of select control based on the value of the MULTIPLE attribute. | |
|
Retrieves the type of control. | |
|
Returns whether the input field value is not the correct syntax. | |
|
Retrieves an autogenerated, unique identifier for the object. | |
|
Retrieves the element's unique number. | |
|
Sets or retrieves the height and width units of the embed object. | |
|
Sets or retrieves the URL property that will be loaded after the specified time has elapsed. | |
|
Sets or gets the URL for the current document. | |
|
Gets the URL for the document, stripped of any character encoding. | |
|
Sets or gets a URN for a target document. | |
|
Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. | |
|
Retrieves the User Agent. | |
|
Returns whether the input field value has any validity errors. | |
|
Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. | |
|
Returns a ValidityState object that represents the validity states of an element. | |
|
Sets or retrieves whether the caption appears at the top or bottom of the table. | |
|
Gets or sets the value of the object. | |
|
Sets or retrieves the default or selected value of the control. | |
|
Sets or gets the current value of a progress element. The value must be a non-negative number between 0 and the max value. | |
|
Sets or retrieves the displayed value for the control object. This value is returned to the server when the control object is submitted. | |
|
Retrieves the file name of the input object after the text is set by user input. | |
|
Specifies the measured value of a meter element. | |
|
The contents of the data element in machine-readable format. | |
|
Sets or retrieves the value of an input parameter for an element. | |
|
Sets or retrieves the value which is returned to the server when the form control is submitted. | |
|
Retrieves or sets the text in the entry field of the textArea element. | |
|
Returns the input field value as a number. | |
|
Returns whether a value has not been entered in an input field that is required. | |
|
Sets or retrieves the | |
|
Retrieves the version vector as a string. | |
|
Sets or retrieves the document object that supplies content to the master element. | |
|
Sets or retrieves a value that indicates whether the master element of a viewlink is included in the tab sequence of the primary document. This property is not supported for Windows apps using JavaScript. | |
|
Sets or gets the color of the links that the user has visited. | |
|
Sets or gets the volume setting for the sound. | |
|
Provides a means for selecting a folder when using input. | |
|
Sets or retrieves the width of the object. | |
|
Gets or sets the width of the object. | |
|
Sets or retrieves the calculated width of the object. | |
|
Returns whether an element will successfully validate based on forms validation rules and constraints. | |
|
Gets the Windows Library for JavaScript control hosted by this element. | |
|
Sets or retrieves how to handle wordwrapping in the object. | |
|
Determines whether data formats within content are automatically detected and (if found) converted to clickable links. |