UserActivation interface allows querying information about a window's user activation state.
A user activation either implies that the user is currently interacting with the page, or has completed an interaction since page load. Typically, this is a click on a button or some other user interaction with the UI.
There are two kinds of window user activation states:
- Transient activation (user is currently interacting with the page) and
- Sticky activation (user has interacted at least once since page load).
See Features gated by user activation for more information and a list of APIs that require either sticky or transient user activation.
This API is only available in the window context and not exposed to workers.
|HTML Standard |
BCD tables only load in the browser