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

createEventObject Method

Internet Development Index

Creates an event object that can be used when passing event context information to the PUBLIC:EVENT element's fire method.

Syntax

oEvent = element.createEventObject()

Return Value

Returns an event object.

Remarks

The same event object cannot be reused in multiple calls to the fire method.

All properties of the event object created using createEventObject are read/write, including those that would be read-only in Dynamic HTML (DHTML). This enables you to set properties on the event object from the HTML Component (HTC) file, before firing the event.

Examples

This example is derived from a calculator behavior sample. When the result changes, the behavior fires a custom onResultChange event back to the page, passing the result as a custom property of the event object.

<PUBLIC:EVENT NAME="onResultChange" ID="rcID"  />
<SCRIPT LANGUAGE="JScript">
:
function doCalc()
{
:
oEvent = createEventObject();
oEvent.result = sResult;
rcID.fire (oEvent);
}
</SCRIPT >

This example shows what the containing page looks like.

<HTML XMLNS:InetSDK>
<HEAD>
<STYLE>
@media all {
InetSDK\:CALC    {behavior:url(engine.htc)}
}
</STYLE>
</HEAD>
<InetSDK:CALC id="myCalc"
onResultChange="resultWindow.innerText=window.event.result">
<TABLE>
<TR><DIV ID="resultWindow" STYLE="border:'.025cm solid gray'"
ALIGN=RIGHT>0.</DIV></TR>
<TR><TD><INPUT TYPE=BUTTON VALUE=" 7 "></TD>
<TD><INPUT TYPE=BUTTON VALUE=" 8 "></TD>
<TD><INPUT TYPE=BUTTON VALUE=" 9 "></TD>
<TD><INPUT TYPE=BUTTON VALUE=" / "></TD>
<TD><INPUT TYPE=BUTTON VALUE=" C "></TD>
</TR>
:
</TABLE>
</InetSDK:CALC>
</HTML>

This feature requires Microsoft® Internet Explorer 5 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

Applies To

element

See Also

detachEvent, Introduction to DHTML Behaviors, Introduction to Viewlink, About Element Behaviors
湖北省| 甘洛县| 宕昌县| 博兴县| 陆良县| 双鸭山市| 宜昌市| 大姚县| 普兰店市| 澄江县| 肇东市| 阳山县| 杨浦区| 乳山市| 封开县| 木里| 凤台县| 凤凰县| 西乌| 稻城县| 泽普县| 衡水市| 高雄县| 龙南县| 交城县| 敖汉旗| 岑巩县| 淄博市| 迁西县| 怀化市| 方正县| 岑溪市| 根河市| 瓮安县| 沽源县| 康马县| 建德市| 西吉县| 桃源县| 曲麻莱县| 吉隆县|