最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

oncontentready Event

Internet Development Index

Fires when the content of the element, to which the behavior is attached, has been completely parsed.

Syntax

<PUBLIC:ATTACH
EVENT = oncontentready
ONEVENT = sEventHandler
FOR = element
ID = sID
/>

Attributes

EVENT
Required. String that specifies the name of a Dynamic HTML (DHTML) event, or any of the events specific to the HTML Component (HTC) that are listed in the HTC Reference.
FOR
Optional. String that specifies one of the following values to identify the source of the event.
documentRefers to the document object.
elementDefault. Refers to the element to which the behavior is attached.
windowRefers to the window object.
ID
Optional. String that uniquely identifies the PUBLIC:ATTACH element within the component. This attribute is analogous to the ID attribute in Dynamic HTML (DHTML).
ONEVENT
Required. String that specifies an inline script or a direct invocation of the event handler function.

Remarks

The innerHTML property of the element might not return the correct value until this event fires.

When this event is fired and the literalContent attribute of the PUBLIC:COMPONENT element is true, the literal content of the Element Behavior has been stored in the innerHTML property. This event indicates to the element behavior that it can then access the innerHTML property.

Because this event is specific to HTC components, the only way to bind to the oncontentready event is by using the PUBLIC:ATTACH element. The attachEvent method does not bind to this event because it works with standard DHTML Events only. When an HTC file is implemented as a Viewlink, the oncontentready event, or any other event that is HTC-specific, cannot be attached to an element in the document fragment.

See Component Initialization for an overview of events fired during the initialization of an HTC file and its primary document.

Example

This example uses the oncontentready event on a page to display the value of the element's innerHTML property.

<PUBLIC:ATTACH EVENT="oncontentready" ONEVENT="show_innerHTML()" />
<SCRIPT LANGUAGE="JScript">
function show_innerHTML()
{
window.alert ('innerHTML = ' + element.innerHTML);
}
</SCRIPT>

See Also

Introduction to DHTML Behaviors, About Element Behaviors, Using HTML Components to Implement DHTML Behaviors in Script
玉溪市| 定襄县| 历史| 安泽县| 尼勒克县| 山阴县| 张掖市| 铜鼓县| 巴彦县| 新宁县| 富蕴县| 高阳县| 宿州市| 西平县| 和平区| 科技| 南皮县| 江山市| 繁昌县| 丰顺县| 沾益县| 小金县| 汉源县| 徐汇区| 临泉县| 丹凤县| 洛浦县| 峨眉山市| 三台县| 宁都县| 江华| 公安县| 应用必备| 嘉峪关市| 加查县| 龙岩市| 横山县| 绿春县| 灌云县| 郯城县| 博野县|