Back to Content

SVGAElement: host property

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

latest431 B
Original Source

{{APIRef("SVG")}}

The host property of the {{domxref("SVGAElement")}} interface returns a string representing the hostname and port (if it's not the default port) in the referenced URL.

This property can be set, to change the URL's host and port.

Value

A string.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • SVG <a> element