Click to return to the Reusing Browser Technology home page    
IHTMLInputImage::get_widt...     IHTMLInputTextElement::cr...     Interfaces and Scripting ...    
Web Workshop  |  Reusing Browser Technology

IHTMLInputTextElement Interface


This interface specifies a type of input control.

IHTMLInputTextElement Methods

createTextRange Creates a text range object for the element. You use a text range to examine and modify the text within the element.
get_defaultValue Retrieves the initial contents of a password or text control or the TEXTAREA element.
get_disabled Determines whether the control is enabled or disabled.
get_form Retrieves a reference to the form the element is embedded on.
get_maxLength Retrieves the maximum number of characters that can be entered into a text control.
get_name Retrieves the name of the control, bookmark, or application.
get_onchange Retrieves a pointer to the event handler function associated with the onchange event on the INPUT text element. This occurs when the contents of the object have changed.
get_onselect Retrieves a pointer to the event handler function associated with the onselect event on the INPUT text element. This event fires at the beginning of a user-initiated select. This event can be canceled, and it participates in the bubbling model.
get_readOnly Determines whether the element's contents are read-only, meaning that the user cannot enter or edit text in the control.
get_size Retrieves the size of the control.
get_status Retrieves the value of a checkbox or radio button. This property is equivalent to the value property for check boxes and radio buttons.
get_type Retrieves the type of intrinsic control represented by the given element object.
get_value Retrieves the default or selected value of the given control.
put_defaultValue Sets the initial contents of a password or text control or the TEXTAREA element.
put_disabled Enables or disables the control. A disabled control appears dimmed and does not respond to user input.
put_maxLength Sets the maximum number of characters that can be entered into a text control.
put_name Sets the name of the control, bookmark, or application.
put_onchange Sets a pointer to the event handler function associated with the onchange event on the INPUT text element. This occurs when the contents of the object have changed.
put_onselect Sets a pointer to the event handler function associated with the onselect event on the INPUT text element. This event fires at the beginning of a user-initiated select. This event can be canceled, and it participates in the bubbling model.
put_readOnly Specifies whether the element's contents are read-only, meaning that the user cannot enter or edit text in the control.
put_size Sets the size of the control.
put_status Sets the value of a checkbox or radio button. This property is equivalent to the value property for check boxes and radio buttons.
put_value Sets the default or selected value of the given control.
select Highlights the input area of a form element.

Interface Information

Implementation System (Mshtml.dll)
Inherits from IDispatch
Header and IDL files Mshtml.h, Mshtml.idl
Minimum availability Internet Explorer 4.0
Minimum operating systems Windows 95, Windows NT 4.0

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0

See Also

InputElement, InputElement::type



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.