**event**
OnDocumentReady event ------------------------------------------------ -------------------------------------- When the document containing behavior is completely parsed.
Format
Attribute Event is required. Specifies a dynamic HTML (DHTML) event, or any string of the HTML component (HTC) specified by the HTML component (HTC) in the HTC reference. For options. Specifies a string in the following value to identify the event source. Document references the Document object. ELEMENT default. Reference elements of behavior connection. WINDOW references to the Window object. ID is optional. The unique identifier string of the PUBLIC: Attach element in the component. This property is similar to the id attribute in DHTML. Onevent must be selected. Direct declaration of the event handler or specified string of the in-line script.
Remarks a behavior that connects to an element receives OndocumentReady and OnContentReady, but only after the Window.onLoad event occurs. For an overall view of the event incident in a HTC file and its main document initialization, see the component initialization.
OnDetach event ------------------------------------------------ -------------------------------------- The connection from one element relieves a behavior.
Format
Attribute Event is required. Specifies a dynamic HTML (DHTML) event, or any string of the HTML component (HTC) specified by the HTML component (HTC) in the HTC reference. For options. Specifies a string in the following value to identify the event source. Document references the Document object. ELEMENT default. Reference elements of behavior connection. WINDOW references to the Window object. ID is optional. The unique identifier string of the PUBLIC: Attach element in the component. This property is similar to the id attribute in DHTML. Onevent must be selected. Direct declaration of the event handler or specified string of the in-line script.
Remarks OnDetach event Allow behavior to implement some clearance work before it completely releases the connection from the elements. When using an Attachevent method to connect a behavior to an event containing the leaves, this event allows behavior to call the Detachevent method to stop obtaining an announcement from the leaves. When using public: attach elements to connect a behavior to the leaves, the behavior automatically stops acquiring notices when the connection is released from the elements, without the need to use the Detachevent method when the OnDetACh event occurs.
OnContentSave event -------------------------------------------------------------------------------------------------------------- -------------------------------------- Connected to an element of an element of an elemental behavior Before saving or replication. Format
Attribute Event is required. Specifies a dynamic HTML (DHTML) event, or any string of the HTML component (HTC) specified by the HTML component (HTC) in the HTC reference. For options. Specifies a string in the following value to identify the event source. Document references the Document object. ELEMENT default. Reference elements of behavior connection. WINDOW references to the Window object. ID is optional. The unique identifier string of the PUBLIC: Attach element in the component. This property is similar to the id attribute in DHTML. Onevent must be selected. Direct declaration of the event handler or specified string of the in-line script.
OnContentReady event ------------------------------------------------------------------------------------------------------------- -------------------------------------- The content of the elements connected to the behavior is completely analyzed. .
Format
Attribute Event is required. Specifies a dynamic HTML (DHTML) event, or any string of the HTML component (HTC) specified by the HTML component (HTC) in the HTC reference. For options. Specifies a string in the following value to identify the event source. Document references the Document object. ELEMENT default. Reference elements of behavior connection. WINDOW references to the Window object. ID is optional. The unique identifier string of the PUBLIC: Attach element in the component. This property is similar to the id attribute in DHTML. Onevent must be selected. Direct declaration of the event handler or specified string of the in-line script.
Remarks InnerHTML attributes of this element may not return the correct value before the event occurs. When the event occurs and the LITERALCONTENT attribute of the public: Component element is true, the text content of the element behavior has been stored in the InnerHTML property. This event pointed out that element behavior can access the InnerHTML property. Because this event is only valid for the HTC component, the only way to bind the OnContentReady event is to use the public: attach element. Attachevent cannot bind this event because only the standard DHTML event works. When a HTC file is implemented as a ViewLink implementation, an onContentReady event, or any other HTC-specific event, it is impossible to connect to an element in the document segment. For an overall view of the event incident in a HTC file and its main document initialization, see the component initialization.