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 SVGScriptElementA boolean reflecting the async attribute of the given <script> element. It indicates whether the script should be executed asynchronously.
SVGScriptElement.crossOriginA string reflecting the crossorigin attribute of the given <script> element. It is a CORS settings attribute.
SVGScriptElement.deferA boolean reflecting the defer attribute of the given <script> element. It indicates whether the script should be executed after the document has been parsed.
SVGScriptElement.href Read onlyAn 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.
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 Jun 26, 2026 by MDN contributors.
Your blueprint for a better internet.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.