attachEvent
function attachEvent(eventName: string = null, callback: () = null): void
Description
Subscribes to the specified event and calls the callback function when the event fires.
Parameters
- eventName
string
null The event name.
- callback
()
null Function to be called when the event fires.
Returns
void
Try It
Api.attachEvent("asc_onHyperlinkClick", function() {
console.log("HYPERLINK!!!");
});