Common Properties, Methods and Collections for the HTML Elements in Internet Explorer Mobile

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This topic shows the common properties, methods and collections that are associated with all the elements that are in the Document Object Model (DOM).

Note

These properties are only supported in Windows Mobile Version 5.0 and later versions.

Properties

The following table shows the properties that apply to all the elements that are in the DOM.

Property Type/Argument Access

childNodes

NodeList

Read-only

className

String

Read/Write

currentStyle

Object

Read-only

dir

Not available

Not supported

document

Object

Read-only

expando

Not available

> [!NOTE] > See Expansion of the object's properties

id

String

Read/Write

innerHTML

String

Read/Write

innerText

String

Read/Write

lang

Not available

Not supported

parentElement

Object

Read-only

parentNode

Node

Read-only

style

Object

Read-only

tagName

String

Read-only

title

Not available

Not supported

Expansion of the object's properties

All objects now react as if the expando property were set to true. However, the expando property is not been implemented.

This means that all objects can now have user-defined properties added to them. Therefore, any reference to an unknown property for an object will create that property should it not already exist for that object. This means that care is required with upper and lowercase letters in properties. For example, innerhtml will not be the same property as innerHTML. Also the effect of object.expando=false will create or set a user-defined property that is named expando.

Methods

The following table shows the methods that apply to all the elements that are in the DOM:

Method Comments

appendChild

Syntax:

element.appendChild(node)

  • Insert the given node as the last child node for this element.
  • Returns the value of the appended Node.

insertBefore

Syntax:

element.insertBefore(node)

  • Insert the given node as the last child node for this element.

removeChild

Syntax:

element.removeChild(node)

  • Remove the given child node from this element.
  • Returns the value of the removed Node.

replaceChild

Syntax:

element.replaceChild(insertNode, replacedNode)

  • Replace the given replacedNode with the insertNode in the list of nodes for this element.
  • Returns the value of the replaced node.

Collections

The following table shows the collections that apply to all the elements that are in the DOM:

Collection Type/Argument Access

Children

Not available

N/A 

   Length

Long

Read-only

   Item

([optional] variant name, [optional] variant index)

Supported

See Also

Other Resources

Internet Explorer Mobile Reference