Get to know MDN better
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
* Some parts of this feature may have varying levels of support.
The SVGScriptElement interface corresponds to the SVG <script> element.
EventTarget Node Element SVGElement SVGScriptElementAn SVGAnimatedString corresponding to the href or xlink:href attribute of the given <script> element.
SVGScriptElement.type Read onlyA string corresponding to the type attribute of the given <script> element. A DOMException is raised with the code NO_MODIFICATION_ALLOWED_ERR on an attempt to change the value of a read-only attribute.
SVGScriptElement.asyncA boolean corresponding to the async attribute of the given <script> element.
SVGScriptElement.crossOriginA string corresponding to the crossorigin attribute of the given <script> element.
This interface doesn't implement any specific methods, but inherits methods from its parent interface, SVGElement.
| Scalable Vector Graphics (SVG) 2 # InterfaceSVGScriptElement |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Apr 29, 2026 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.