|
attachEvent Method
Description
This method attaches the specified handler function to the specified event.
Arguments
This method accepts the following arguments:
|
eventName
|
String value. Required.
The name of the event to which the specified handler will be attached.
|
|
handler
|
String or function reference. Required.
The handler to be called when the specified event is fired. Note that this handler will always be called in the global context.
|
Syntax
The following code sample illustrates how this method can be invoked:
TVS = new TruveoVideoSearch(appid);
...
TVS.attachEvent(eventName, handler);
Return Value
This method returns true if the handler was successfully attached.
Response Data Objects
This method does not update any data objects.
Events
This method does not fire any events.
Errors
This method does not throw any errors.
|