| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/en-US/docs/Web/API/SVGScriptElement | [Back] [Original] |
Get to know MDN better
This feature is well established and works across many devices and browser versions. Its 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.
SVGScriptElement.asyncA 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.defer A 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.
| Specification |
|---|
| Scalable Vector Graphics (SVG) 2 # InterfaceSVGScriptElement |
This page was last modified on Jun 26, 2026 by MDN contributors.
SVGScriptElementSVGAElementSVGAngleSVGAnimateColorElementSVGAnimateElementSVGAnimateMotionElementSVGAnimateTransformElementSVGAnimatedAngleSVGAnimatedBooleanSVGAnimatedEnumerationSVGAnimatedIntegerSVGAnimatedLengthSVGAnimatedLengthListSVGAnimatedNumberSVGAnimatedNumberListSVGAnimatedPreserveAspectRatioSVGAnimatedRectSVGAnimatedStringSVGAnimatedTransformListSVGAnimationElementSVGCircleElementSVGClipPathElementSVGComponentTransferFunctionElementSVGDefsElementSVGDescElementSVGDiscardElementSVGElementSVGEllipseElementSVGFEBlendElementSVGFEColorMatrixElementSVGFEComponentTransferElementSVGFECompositeElementSVGFEConvolveMatrixElementSVGFEDiffuseLightingElementSVGFEDisplacementMapElementSVGFEDistantLightElementSVGFEDropShadowElementSVGFEFloodElementSVGFEFuncAElementSVGFEFuncBElementSVGFEFuncGElementSVGFEFuncRElementSVGFEGaussianBlurElementSVGFEImageElementSVGFEMergeElementSVGFEMergeNodeElementSVGFEMorphologyElementSVGFEOffsetElementSVGFEPointLightElementSVGFESpecularLightingElementSVGFESpotLightElementSVGFETileElementSVGFETurbulenceElementSVGFilterElementSVGForeignObjectElementSVGGElementSVGGradientElementSVGGraphicsElementSVGImageElementSVGLengthSVGLengthListSVGLineElementSVGLinearGradientElementSVGMPathElementSVGMarkerElementSVGMaskElementSVGMetadataElementSVGNumberSVGNumberListSVGPathElementSVGPatternElementSVGPointSVGPointListSVGPolygonElementSVGPolylineElementSVGPreserveAspectRatioSVGRadialGradientElementSVGRectSVGRectElementSVGSVGElementSVGSetElementSVGStopElementSVGStringListSVGStyleElementSVGSwitchElementSVGSymbolElementSVGTSpanElementSVGTextContentElementSVGTextElementSVGTextPathElementSVGTextPositioningElementSVGTitleElementSVGTransformSVGTransformListSVGUnitTypesSVGUseElementSVGViewElementTimeEventYour blueprint for a better internet.
Portions of this content are 19982026 by individual mozilla.org contributors. Content available under a Creative Commons license.
| Web Proxy Viewer | New URL | Original Page |