captureEvents()

This method is used to capture the specified event or events before they reach their intended targets in the bubbling order of the document.

syntax:

captureEvents(eventList)

This method is used with the following:

document
layer
window