Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic for

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

Attribute of the PUBLIC:ATTACH element that identifies the source of the event. The value of for may be one of the following:

  • document – an event of the document object

  • element – Default. An event of the master element to which the behavior is attached.

  • window – an event of the window object.

The following example attaches the onclick event to the ExpandCollapse() event handler:

<PUBLIC:ATTACH EVENT="onclick" ONEVENT="ExpandCollapse()" />

The for attribute is declared in markup only.

See also event and onevent.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.