Attach event to window/document | Community
Skip to main content
dustins79436056
Level 2
December 11, 2017
New

Attach event to window/document

  • December 11, 2017
  • 1 reply
  • 2842 views

Are there any plans to extend the Custom Event portion of Event Type in Rules? I would like to eventually see the ability to add events to things other than elements on the page, particularly the window and/or document.

1 reply

Adobe Employee
April 1, 2018

If you choose "any element" in the Custom Event configuration view, the rule will fire when your custom event is triggered from any element, including document (but not window). Does that suffice for what you need?