Show All

# handlerObject Attribute

Identifies the unique name of the event handler in the scripting code.

## Type

    xsd:string

## Remarks

The handlerObject attribute is a required attribute of the domEventHandler element.

The referenced script must use this name to define event handlers for the specified XML Document Object Model (DOM) node. For example, script may contain functions such as `TravelExpenses::OnValidate` and `TravelExpenses::OnAfterChange` that are called whenever the specified events occur at the matching XML DOM node.

## Example

The following is an example of the handlerObject as it is used in the domEventHandler element:

    <xsf:domEventHandlers>
       <xsf:domEventHandler
          match="TravelReport/Expenses"
          handlerObject="TravelExpenses"/>
    </xsf:domEventHandlers>

©2003-2004 Microsoft Corporation. All rights reserved. Permission to copy, display and distribute this document is available at: http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp