ontimeerror Event

Internet Development Index

Fires whenever a time-specific error occurs, usually as a result of setting a property to an invalid value.

Syntax

Inline HTML<ELEMENT ontimeerror = "handler" ... > All platforms
Named script <SCRIPT FOR = object EVENT = ontimeerror> Internet Explorer only

Event Information

BubblesNo
CancelsNo
To invoke Set a time property, such as dur, to an invalid value.
Default action Calls the associated event handler.

Available Properties

Available Properties

Remarks

The ontimeerror event can only be set on the BODY. Use the FOR attribute of the script element to attach the ontimeerror event handler to the BODY.

<SCRIPT FOR="BODY" event="ontimeerror">
alert("An HTML+TIME error has occurred.");
</SCRIPT>

Standards Information

This event is a Microsoft extension to Synchronized Multimedia Integration Language (SMIL) Non-Microsoft link.

Applies To

A, ACRONYM, ADDRESS, AREA, B, BIG, BLOCKQUOTE, BUTTON, CAPTION, CENTER, CITE, CODE, DD, DEL, DIR, DIV, DL, DT, EM, FIELDSET, FONT, FORM, hn, HR, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LEGEND, LI, LISTING, MARQUEE, MENU, OL, OPTION, P, PLAINTEXT, PRE, Q, S, SAMP, selection, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP

See Also

Introduction to HTML+TIME