MDN will be in maintenance mode on Wednesday September 20th, starting at 10 AM Pacific / 5 PM UTC, for about 1 hour.

この記事はまだボランティアによって 日本語 に翻訳されていません。ぜひ MDN に参加して翻訳を手伝ってください!
この記事を English (US) で読むこともできます。

The SVGAElement interface provides access to the properties of <a> element, as well as methods to manipulate them.


This interface also inherits properties from its parent, SVGGraphicsElement, and implements properties from SVGURIReference and HTMLHyperlinkElementUtils. Read only
It corresponds to the target attribute of the given element.


This interface has no methods but inherits methods from its parent, SVGGraphicsElement.


In the example below, the target attribute of the <a> element is set to _blank and when the link is clicked, it logs to notify whether the condition is met or not.

var linkRef = document.querySelector("a"); = "_self"; 

linkRef.onclick = function(){
  if ( === "_blank") {
    console.log("BLANK!"); = "_self";
  } else {
    console.log("SORRY! not _blank");


Specification Status Comment
Scalable Vector Graphics (SVG) 2 Candidate Recommendation Replaced inheritance from SVGElement by SVGGraphicsElement and removed the interface implementations of SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, and SVGTransformable by HTMLHyperlinkElementUtils
Scalable Vector Graphics (SVG) 1.1 (Second Edition) Recommendation Initial definition

Browser compatibility

Feature Chrome Edge Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support (Yes) (Yes) (Yes) 9.0 (Yes) (Yes)
Feature Android Edge Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support ? (Yes) (Yes) ? (Yes) (Yes)

See also

  • SVG <a> element


 このページの貢献者: Sebastianz, dunnbobcat, abbycar, dverane08, fscholz, kscarfone, Sheppy, Jeremie
 最終更新者: Sebastianz,