Skip to content

EventHandler()

ts
function EventHandler(): string;

This function returns the name of the event handler that triggered the execution of the currently running script.

TIP

For file-based events, use CtxRelPath() and CtxRelTargetPath() to get the paths of the files that triggered the event.

Example

js
var evth = EventHandler();
Log(evth); // will log (for example): AfterFileUpload