HTC Guide
Introduced in Microsoft (R) Internet Explorer 5, HTML Components (HTCs) provide a mechanism to use scripts as dynamic HTML (DHTML) behavior implementation component functions. Save with .htc extensions, an HTC is an HTML file containing scripts and a set of HTC special elements for defining components. This section contains related elements and members they support.
Object Document represents an HTML document in a given browser window. ELEMENT returns a reference to the label of the connection behavior in the main document. Public: Attach Binds a function to an event, so the function is called when each event occurs on a special object. Public: Component indicates the content of the file in HTC. Public: Defaults Sets a default attribute of an HTC. Public: Event Defines an HTC event to expose it to a document containing the HTC. Public: Method defines a method of HTC to expose it to a document that contains the HTC. Public: Property defines an HTC's properties to expose it to a document containing the HTC.
Method CreateEventObject creates an event object that is used when the event attached information is required to send the event additional information.
The content of an event onContentReady is fully parsed when the content of the active element is fully parsed. OnContentSave is connected to an element of an elemental behavior that occurs before being saved or copied. ONDTACH happens before the connection is released from one element. OndocumentReady occurs when the document containing behavior is completely parsed.