composedPath() Event Method

Definition and Usage

The composedPath() method returns an array of objects containing elements in the correct execution order of the event flow.

Instance

What is the event flow of the current event:

function func1(event) {
  alert(event.composedPath());
{}

Try It Yourself

Syntax

event.composedPath()

Parameters

None

Technical Details

Return Value: Array of HTML Elements

Browser Support

Method Chrome IE Firefox Safari Opera
composedPath() 53 Not Supported 52 Support Support