t:ENDEVENT Attribute | endEvent Property (deprecated)

This page documents a feature of HTML+TIME 1.0, which was released in Microsoft® Internet Explorer 5. We recommend that you migrate your content to the latest version of HTML+TIME, which implements the SMIL 2.0 Working Draft. See the Introduction to HTML+TIME overview for more information.

Sets or gets a value indicating that the timeline of an element ends immediately when the referenced event occurs, regardless of the element's repeat count or repeatDur property.


XML <ELEMENT t:ENDEVENT = sEventName... >
Scripting [ sEventName = ] object.endEvent

Possible Values

sEventName String that specifies or receives one of the following values.
Default. Value that specifies the element timeline is not stopped when a particular event occurs.
String that specifies a timing event or an event supported by the Dynamic HTML (DHTML) Object Model.

The property is read/write. The property has a default value of none.


This property is deprecated.

This property supports interactive timing, where element timelines can end in response to events from users, media players, or the presentation. If the referenced event does not occur, the timeline on the current element does not start. To override this behavior, you can specify a maximum duration for the timeline using either the t:DUR attribute or the t:END attribute on the same element. This behavior is sometimes referred to as "lazy interactive."

The prefix t is used to associate this attribute with an XML namespace.


This example uses the t:ENDEVENT attribute to make a paragraph disappear when the user clicks the button.

.time    { behavior: url(#default#time);}
<BODY BGCOLOR="white">
<BUTTON ID="button1">Hide Paragraph</BUTTON><BR><BR>
<SPAN ID="span1" CLASS=time STYLE="COLOR:Red;"
    t:ENDEVENT="button1.onclick" t:TIMEACTION="display">
    <H3>Paragraph 1</H3>
    <P>This is paragraph number one. It disappears when the button 
	is clicked.</P>

Code example: http://samples.msdn.microsoft.com/workshop/samples/author/behaviors/endevent.htm

Applies To

t:AUDIO, t:IMG, t:MEDIA, t:PAR, t:SEQ, time, t:VIDEO

See Also

Community Additions