MSHTML Classes: CFormElement

An instance of the CFormElement class is created for each FORM tag.

Identifiers

coclass: HTMLFormElement {3050F251-98B5-11CF-BB82-00AA00BDCE0B}
dispinterface: DispHTMLFormElement {3050F510-98B5-11CF-BB82-00AA00BDCE0B}

Scripting

The table below lists the interface members that the CFormElement class exposes as properties (methods, collections, etc) through its string table in addition to the very many properties that are common to all elements.

Properties that Microsoft does not list in the HTML and DHTML Reference are highlighted. Properties that are listed but not as applying to the form element are shaded yellow.

Property Attribute Interface Member
acceptCharset accept-charset IHTMLFormElement2 get_acceptCharset
put_acceptCharset
action same IHTMLFormElement get_action
put_action
appendChild   IHTMLDOMNode appendChild
appendItemSeparator   IHTMLFormElement4 appendItemSeparator
appendNameFilePair   IHTMLFormElement4 appendNameFilePair
appendNameValuePair   IHTMLFormElement4 appendNameValuePair
attributes   IHTMLDOMNode get_attributes
childNodes   IHTMLDOMNode get_childNodes
cloneNode   IHTMLDOMNode cloneNode
elements   IHTMLFormElement get_elements
encoding encType IHTMLFormElement get_encoding
put_encoding
firstChild   IHTMLDOMNode get_firstChild
hasChildNodes   IHTMLDOMNode hasChildNodes
insertBefore   IHTMLDOMNode insertBefore
item   IHTMLFormElement item
lastChild   IHTMLDOMNode get_lastChild
length   IHTMLFormElement get_length
put_length
method same IHTMLFormElement get_method
put_method
name same IHTMLFormElement get_name
put_name
namedItem   IHTMLFormElement3 namedItem
_newEnum   IHTMLFormElement get__newEnum
nextSibling   IHTMLDOMNode get_nextSibling
nodeName   IHTMLDOMNode get_nodeName
nodeType   IHTMLDOMNode get_nodeType
nodeValue   IHTMLDOMNode get_nodeValue
put_nodeValue
onreset same IHTMLFormElement get_onreset
put_onreset
onsubmit same IHTMLFormElement get_onsubmit
put_onsubmit
ownerDocument   IHTMLDOMNode2 get_ownerDocument
parentNode   IHTMLDOMNode get_parentNode
previousSibling   IHTMLDOMNode get_previousSibling
removeChild   IHTMLDOMNode removeChild
removeNode   IHTMLDOMNode removeNode
replaceChild   IHTMLDOMNode replaceChild
replaceNode   IHTMLDOMNode replaceNode
reset   IHTMLFormElement reset
submit   IHTMLFormElement submit
swapNode   IHTMLDOMNode swapNode
tags   IHTMLFormElement tags
target same IHTMLFormElement get_target
put_target
uniqueID   IHTMLUniqueName get_uniqueID
uniqueNumber   IHTMLUniqueName get_uniqueNumber
urns   IHTMLFormElement2 urns