CSS - scripting

scripting is a CSS media feature that can be used to check whether scripting (e.g., JavaScript) is available.

Description  

scripting is a CSS media feature that can be used to check whether scripting (e.g., JavaScript) is available.

Browser Compatibility  

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support Not supported[1] Not supported[2] ? ? ?
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support ? ? ? ? ?

[1] Blink does not implement this feature yet. See Chromium bug #489957.

[2] Gecko does not implement this feature yet. See bug 1166581.

See Also  

Specifications  

Specification Status Comment
Media Queries Level 4
The definition of 'scripting' in that specification.
Working Draft Initial definition

Enumerated values

Value Meaning
none Scripting is completely unavailable on the current document.
initial-only Scripting is only enabled during the initial page load but not afterwards.
enabled Scripting is supported and active on the current document.

License

© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-us/docs/web/css/@media/scripting