JavaScript » Document » captureEvents

Syntax:
document.captureEvents(eventType)

This method instructs the document to capture and handle all events of a particular type. See the event object for a list of event types.