<script> and <noscript>
Widely available
The <script>
element contains or loads data or executable code. This is typically used to load JavaScript code. The <noscript>
element represents alternative content to show when scripting is not allowed.
Compatibility
- Chrome 1 Released on 2008-12-11
- Chrome Android 18 Released on 2012-06-27
- Edge 12 Released on 2015-07-29
- Firefox 1 Released on 2004-11-09
- Firefox for Android 4 Released on 2011-03-29
- Safari 3 Released on 2007-10-26
- Safari on iOS 2 Released on 2008-07-11
MDN docs
Specifications
- HTML Standard, from HTML Workstream (WHATWG).
BCD data
- api.HTMLScriptElement
- api.HTMLScriptElement.async
- api.HTMLScriptElement.crossOrigin
- api.HTMLScriptElement.defer
- api.HTMLScriptElement.integrity
- api.HTMLScriptElement.src
- api.HTMLScriptElement.supports_static
- api.HTMLScriptElement.text
- api.HTMLScriptElement.type
- html.elements.noscript
- html.elements.script
- html.elements.script.async
- html.elements.script.crossorigin
- html.elements.script.defer
- html.elements.script.integrity
- html.elements.script.src
- html.elements.script.type