Associates a specific function with a specified event, so that the function gets called each time the event is triggered.
JavaScript |
|
bind(eventName, func) |
|
Parameters
eventName
The event ID.
func
The function to execute each time the event is triggered.