Defining Event Handlers
When you use a scriptlet in your host application, the application can be notified about events that occur in the scriptlet. The scriptlet can expose two types of events:
-
Standard DHTML events such as the onclick event and the onkeypress event. These events are triggered for the scriptlet container object as a wholeusing a standard event, you cannot distinguish which control within the scriptlet triggered the event. For more information, see Handling Standard Events.
-
Custom events (events that you define or DHTML events not provided as standard events). You can also use custom events to pinpoint which control in the scriptlet triggered the event. For more information, see Defining Custom Events.