Export (0) Print
Expand All

2.3.3.3 event

Quirks Mode, IE7 Mode, IE8 Mode, and IE9 Mode (All Versions)

Attribute of the PUBLIC:ATTACH element that specifies the name of any standard event (prefixed with "on") or one of the following HTML Component events:

  • oncontentready – fires when the master element has been parsed completely

  • oncontentsave – fires before content that is attached to an element is saved or copied

  • ondetach – fires before a behavior is detached from a master element

  • ondocumentready – fires when the primary document has been parsed completely

The following example attaches the fnInit() function to the oncontentready event:

<PUBLIC:COMPONENT tagName=TOOLBAR_BUTTON>
  <PUBLIC:ATTACH event="oncontentready" onevent="fnInit()"/>
</PUBLIC:COMPONENT>

The event attribute is declared in markup only.

Show:
© 2014 Microsoft