Back to Content

SVGAElement: hash property

files/en-us/web/api/svgaelement/hash/index.md

latest467 B
Original Source

{{APIRef("SVG")}}

The hash property of the {{domxref("SVGAElement")}} interface returns a string representing the fragment identifier, including the leading hash mark (#), if any, in the referenced URL.

This property can be set, to change the URL's fragment (ignores leading #).

Value

A string.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • SVG <a> element