11 KiB
| title | chunk | source | category | tags | date_saved | instance |
|---|---|---|---|---|---|---|
| Transient activation - Glossary | MDN | 1/3 | https://developer.mozilla.org/en-US/docs/Glossary/Transient_activation | reference | web, html, css, javascript, documentation | 2026-05-05T05:47:24.795250+00:00 | kb-cron |
MDN HTML HTML: Markup language
HTML reference
HTML guides
Markup languages
CSS reference
CSS guides
Layout cookbook
JavaScriptJS JavaScript: Scripting language
JS reference
JS guides
Web APIs Web APIs: Programming interfaces
Web API reference
Web API guides
- Using the Web animation API
- Using the Fetch API
- Working with the History API
- Using the Web speech API
- Using web workers
Technologies
Topics
Learn Learn web development
Frontend developer course
- Getting started modules
- Core modules
- MDN Curriculum
- Check out the video course from Scrimba, our partner
Learn HTML
Learn CSS
Learn JavaScript
Tools Discover our tools
About Get to know MDN better
Transient activation
Transient activation (or "transient user activation") is a window state that indicates a user has recently directly and meaningfully interacted with the window. The state is enabled following any user interaction, when the window has focus, that results in the browser generating one or more of the following:
- A
mousedownorpointerdownevent for a mouse. - A
pointerupevent for any other kind of pointer. - A
touchendevent. - A
keydownevent, other than for the escape or browser shortcut keys.
The window is not user-activated by events that aren't necessarily caused by intentional interaction with the window, such as mouse move events or wheel events.
Transient activation expires after a timeout (if not renewed by further interaction), and may also be consumed/deactivated after using some gated features (such as Window.open()).
Transient activation is commonly used as a mechanism for ensuring that a web API can only function if triggered by user interaction. For example, scripts cannot arbitrarily launch a popup that requires transient activation — it must be triggered from a UI element's event handler. See Features gated by user activation for information about APIs that require transient activation.
The UserActivation.isActive property can be used to programmatically check the current window's transient activation state.
In this article
See also
- Comparison between transient and sticky activation in Features gated by user activation
- Related glossary terms:
UserActivation.isActive- HTML Living Standard > Transient activation