Path: blob/main/files/en-us/web/css/@media/scripting/index.md
6514 views
------{{CSSRef}}
The scripting CSS media feature can be used to test whether scripting (such as JavaScript) is available.
Syntax
The scripting feature is specified as a keyword value chosen from the list below.
none: Scripting is completely unavailable on the current document.
initial-only: Scripting is enabled during the initial page load, but not afterwards.
enabled: Scripting is supported and active on the current document.
Examples
HTML
CSS
Result
{{EmbedLiveSample("Examples")}}
Specifications
{{Specifications}}
Browser compatibility
{{Compat}}