property currentEvent

(r/o) event currentEvent;

Typ

Zugriff

This property returns the current event object that was fired. For more information please see the Event class.
function onClick()
{
    var event = shell.currentEvent;
    if (event)
    {
        var targetBox = event.targetBox;
        if (targetBox)
        {
            shell.print("ID = " + targetBox.id);
        }
    }
}