Back to Content

SVGScriptElement

files/en-us/web/api/svgscriptelement/index.md

latest1.1 KB
Original Source

{{APIRef("SVG")}}

The SVGScriptElement interface corresponds to the SVG {{SVGElement("script")}} element.

{{InheritanceDiagram}}

Instance properties

  • {{domxref("SVGScriptElement.href")}} {{ReadOnlyInline}}
    • : An {{domxref("SVGAnimatedString")}} corresponding to the {{SVGAttr("href")}} or {{SVGAttr("xlink:href")}} {{deprecated_inline}} attribute of the given {{SVGElement("script")}} element.
  • {{domxref("SVGScriptElement.type")}} {{ReadOnlyInline}}
    • : A string corresponding to the {{SVGAttr("type")}} attribute of the given {{SVGElement("script")}} element. A {{domxref("DOMException")}} is raised with the code NO_MODIFICATION_ALLOWED_ERR on an attempt to change the value of a read only attribute.
  • {{domxref("SVGScriptElement.crossOrigin")}} {{ReadOnlyInline}}
    • : A string corresponding to the {{SVGAttr("crossorigin")}} attribute of the given {{SVGElement("script")}} element.

Instance methods

This interface doesn't implement any specific methods, but inherits methods from its parent interface, {{domxref("SVGElement")}}.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}