function onClick() { var targetBox = shell.currentEventTargetBox; if (targetBox) { shell.print("ID = " + targetBox.id); } }