The HTMLAnchorElement interface represents hyperlink elements
provides special properties and methods (beyond those of the
web.dom.HTMLElement
object interface that they inherit from)
manipulating the layout and presentation of such elements. This
corresponds to <a> element; not to be confused with <link>, which
represented by HTMLLinkElement)
The HTMLAnchorElement interface represents hyperlink elements provides special properties and methods (beyond those of the `web.dom.HTMLElement` object interface that they inherit from) manipulating the layout and presentation of such elements. This corresponds to <a> element; not to be confused with <link>, which represented by HTMLLinkElement)
(access-key this)
Property.
Is a DOMString representing a single character that switches focus to the hyperlink.
Property. Is a DOMString representing a single character that switches focus to the hyperlink.
(blur this)
Method.
The HTMLElement.blur() method removes keyboard focus from the element.
element.blur();
See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/blur
Method. The HTMLElement.blur() method removes keyboard focus from the element. `element.blur();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/blur`
(charset this)
Property.
Is a DOMString representing the character encoding of the linked
Property. Is a DOMString representing the character encoding of the linked
(coords this)
Property.
Is a DOMString representing a comma-separated list of coordinates.
Property. Is a DOMString representing a comma-separated list of coordinates.
(download this)
Property.
The HTMLAnchorElement.download property is a web.dom.DOMString
that the linked resource is intended to be downloaded rather
displayed in the browser. The value, if any, specifies the default
name for use in labeling the resource in a local file system.
the name is not a valid file name in the underlying OS, the browser
adjust it.
var dnload = anchorElt.download; anchorElt.download = dnload;
See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/download
Property. The HTMLAnchorElement.download property is a `web.dom.DOMString` that the linked resource is intended to be downloaded rather displayed in the browser. The value, if any, specifies the default name for use in labeling the resource in a local file system. the name is not a valid file name in the underlying OS, the browser adjust it. `var dnload = anchorElt.download; anchorElt.download = dnload;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/download`
(focus this options)
Method.
The HTMLElement.focus() method sets focus on the specified element, it can be focused. The focused element is the element which will keyboard and similar events by default.
element.focus(options); // Object parameter
See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus
Method. The HTMLElement.focus() method sets focus on the specified element, it can be focused. The focused element is the element which will keyboard and similar events by default. `element.focus(options); // Object parameter` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus`
(hash this)
Property.
The HTMLHyperlinkElementUtils.hash property returns a web.dom.DOMString
a '#' followed by the fragment identifier of the URL.
string = object.hash;
See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/hash
Property. The HTMLHyperlinkElementUtils.hash property returns a `web.dom.DOMString` a '#' followed by the fragment identifier of the URL. `string = object.hash;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/hash`
(host this)
Property.
The HTMLHyperlinkElementUtils.host property is a web.USVString
the host, that is the hostname, and then, if the port of the
is nonempty, a ':', and the port of the URL.
string = object.host; object.host = string;
See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/host
Property. The HTMLHyperlinkElementUtils.host property is a `web.USVString` the host, that is the hostname, and then, if the port of the is nonempty, a ':', and the port of the URL. `string = object.host; object.host = string;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/host`
(hostname this)
Property.
The HTMLHyperlinkElementUtils.hostname property is a web.USVString
the domain of the URL.
string = object.hostname; object.hostname = string;
See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/hostname
Property. The HTMLHyperlinkElementUtils.hostname property is a `web.USVString` the domain of the URL. `string = object.hostname; object.hostname = string;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/hostname`
(href this)
Property.
The HTMLHyperlinkElementUtils.href property is a web.USVString
the whole URL.
See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/href
Property. The HTMLHyperlinkElementUtils.href property is a `web.USVString` the whole URL. See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/href`
(hreflang this)
Property.
Is a DOMString that reflects the hreflang HTML attribute, indicating language of the linked resource.
Property. Is a DOMString that reflects the hreflang HTML attribute, indicating language of the linked resource.
(media this)
Property.
Is a DOMString that reflects the media HTML attribute, indicating intended media for the linked resource.
Property. Is a DOMString that reflects the media HTML attribute, indicating intended media for the linked resource.
(name this)
Property.
Is a DOMString representing the anchor name.
Property. Is a DOMString representing the anchor name.
(origin this)
Property.
[Read Only]
The HTMLHyperlinkElementUtils.origin read-only property is a containing the Unicode serialization of the origin of the represented
string = object.origin;
See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/origin
Property. [Read Only] The HTMLHyperlinkElementUtils.origin read-only property is a containing the Unicode serialization of the origin of the represented `string = object.origin;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/origin`
(password this)
Property.
[Read Only]
The HTMLHyperlinkElementUtils.password property is a web.USVString
the password specified before the domain name.
string = object.password; object.password = string;
See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/password
Property. [Read Only] The HTMLHyperlinkElementUtils.password property is a `web.USVString` the password specified before the domain name. `string = object.password; object.password = string;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/password`
(pathname this)
Property.
The HTMLHyperlinkElementUtils.pathname property is a web.USVString
an initial '/' followed by the path of the URL (or the empty
if there is no path).
string = object.pathname; object.pathname = string;
See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/pathname
Property. The HTMLHyperlinkElementUtils.pathname property is a `web.USVString` an initial '/' followed by the path of the URL (or the empty if there is no path). `string = object.pathname; object.pathname = string;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/pathname`
(port this)
Property.
The HTMLHyperlinkElementUtils.port property is a web.USVString
the port number of the URL. If the URL does not contain an explicit
number, it will be set to ''.
string = object.port; object.port = string;
See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/port
Property. The HTMLHyperlinkElementUtils.port property is a `web.USVString` the port number of the URL. If the URL does not contain an explicit number, it will be set to ''. `string = object.port; object.port = string;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/port`
(protocol this)
Property.
The HTMLHyperlinkElementUtils.protocol property is a web.USVString
the protocol scheme of the URL, including the final ':'.
string = object.protocol; object.protocol = string;
See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/protocol
Property. The HTMLHyperlinkElementUtils.protocol property is a `web.USVString` the protocol scheme of the URL, including the final ':'. `string = object.protocol; object.protocol = string;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/protocol`
(referrer-policy this)
Property.
[Experimental]
The HTMLAnchorElement.referrerPolicy property reflect the HTML
attribute of the <a>
element defining which referrer is sent
fetching the resource.
refStr = anchorElt.referrerPolicy; anchorElt.referrerPolicy = refStr;
See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/referrerPolicy
Property. [Experimental] The HTMLAnchorElement.referrerPolicy property reflect the HTML attribute of the `<a>` element defining which referrer is sent fetching the resource. `refStr = anchorElt.referrerPolicy; anchorElt.referrerPolicy = refStr;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/referrerPolicy`
(rel this)
Property.
The HTMLAnchorElement.rel property reflects the rel attribute.
is a web.dom.DOMString
containing a space-separated list of
types indicating the relationship between the resource represented
the <a>
element and the current document.
var relstr = anchorElt.rel; anchorElt.rel = relstr;
See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/rel
Property. The HTMLAnchorElement.rel property reflects the rel attribute. is a `web.dom.DOMString` containing a space-separated list of types indicating the relationship between the resource represented the `<a>` element and the current document. `var relstr = anchorElt.rel; anchorElt.rel = relstr;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/rel`
(rel-list this)
Property.
[Read Only]
The HTMLAnchorElement.relList read-only property reflects the
attribute. It is a live web.dom.DOMTokenList
containing the
of link types indicating the relationship between the resource
by the <a>
element and the current document.
var relstr = anchorElt.relList;
See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/relList
Property. [Read Only] The HTMLAnchorElement.relList read-only property reflects the attribute. It is a live `web.dom.DOMTokenList` containing the of link types indicating the relationship between the resource by the `<a>` element and the current document. `var relstr = anchorElt.relList;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/relList`
(rev this)
Property.
Is a DOMString representing that the rev HTML attribute, specifying relationship of the link object to the target object. Note: Currently the W3C HTML 5.2 spec states that rev is no obsolete, whereas the WHATWG living standard still has it labeled Until this discrepancy is resolved, you should still assume it obsolete.
Property. Is a DOMString representing that the rev HTML attribute, specifying relationship of the link object to the target object. Note: Currently the W3C HTML 5.2 spec states that rev is no obsolete, whereas the WHATWG living standard still has it labeled Until this discrepancy is resolved, you should still assume it obsolete.
(search this)
Property.
The HTMLHyperlinkElementUtils.search property is a search string,
called a query string, that is web.USVString
containing a '?'
by the parameters of the URL.
string = object.search; object.search = string;
See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/search
Property. The HTMLHyperlinkElementUtils.search property is a search string, called a query string, that is `web.USVString` containing a '?' by the parameters of the URL. `string = object.search; object.search = string;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/search`
(set-access-key! this val)
Property.
Is a DOMString representing a single character that switches focus to the hyperlink.
Property. Is a DOMString representing a single character that switches focus to the hyperlink.
(set-charset! this val)
Property.
Is a DOMString representing the character encoding of the linked
Property. Is a DOMString representing the character encoding of the linked
(set-coords! this val)
Property.
Is a DOMString representing a comma-separated list of coordinates.
Property. Is a DOMString representing a comma-separated list of coordinates.
(set-download! this val)
Property.
The HTMLAnchorElement.download property is a web.dom.DOMString
that the linked resource is intended to be downloaded rather
displayed in the browser. The value, if any, specifies the default
name for use in labeling the resource in a local file system.
the name is not a valid file name in the underlying OS, the browser
adjust it.
var dnload = anchorElt.download; anchorElt.download = dnload;
See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/download
Property. The HTMLAnchorElement.download property is a `web.dom.DOMString` that the linked resource is intended to be downloaded rather displayed in the browser. The value, if any, specifies the default name for use in labeling the resource in a local file system. the name is not a valid file name in the underlying OS, the browser adjust it. `var dnload = anchorElt.download; anchorElt.download = dnload;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/download`
(set-hash! this val)
Property.
The HTMLHyperlinkElementUtils.hash property returns a web.dom.DOMString
a '#' followed by the fragment identifier of the URL.
string = object.hash;
See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/hash
Property. The HTMLHyperlinkElementUtils.hash property returns a `web.dom.DOMString` a '#' followed by the fragment identifier of the URL. `string = object.hash;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/hash`
(set-host! this val)
Property.
The HTMLHyperlinkElementUtils.host property is a web.USVString
the host, that is the hostname, and then, if the port of the
is nonempty, a ':', and the port of the URL.
string = object.host; object.host = string;
See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/host
Property. The HTMLHyperlinkElementUtils.host property is a `web.USVString` the host, that is the hostname, and then, if the port of the is nonempty, a ':', and the port of the URL. `string = object.host; object.host = string;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/host`
(set-hostname! this val)
Property.
The HTMLHyperlinkElementUtils.hostname property is a web.USVString
the domain of the URL.
string = object.hostname; object.hostname = string;
See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/hostname
Property. The HTMLHyperlinkElementUtils.hostname property is a `web.USVString` the domain of the URL. `string = object.hostname; object.hostname = string;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/hostname`
(set-href! this val)
Property.
The HTMLHyperlinkElementUtils.href property is a web.USVString
the whole URL.
See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/href
Property. The HTMLHyperlinkElementUtils.href property is a `web.USVString` the whole URL. See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/href`
(set-hreflang! this val)
Property.
Is a DOMString that reflects the hreflang HTML attribute, indicating language of the linked resource.
Property. Is a DOMString that reflects the hreflang HTML attribute, indicating language of the linked resource.
(set-media! this val)
Property.
Is a DOMString that reflects the media HTML attribute, indicating intended media for the linked resource.
Property. Is a DOMString that reflects the media HTML attribute, indicating intended media for the linked resource.
(set-name! this val)
Property.
Is a DOMString representing the anchor name.
Property. Is a DOMString representing the anchor name.
(set-pathname! this val)
Property.
The HTMLHyperlinkElementUtils.pathname property is a web.USVString
an initial '/' followed by the path of the URL (or the empty
if there is no path).
string = object.pathname; object.pathname = string;
See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/pathname
Property. The HTMLHyperlinkElementUtils.pathname property is a `web.USVString` an initial '/' followed by the path of the URL (or the empty if there is no path). `string = object.pathname; object.pathname = string;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/pathname`
(set-port! this val)
Property.
The HTMLHyperlinkElementUtils.port property is a web.USVString
the port number of the URL. If the URL does not contain an explicit
number, it will be set to ''.
string = object.port; object.port = string;
See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/port
Property. The HTMLHyperlinkElementUtils.port property is a `web.USVString` the port number of the URL. If the URL does not contain an explicit number, it will be set to ''. `string = object.port; object.port = string;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/port`
(set-protocol! this val)
Property.
The HTMLHyperlinkElementUtils.protocol property is a web.USVString
the protocol scheme of the URL, including the final ':'.
string = object.protocol; object.protocol = string;
See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/protocol
Property. The HTMLHyperlinkElementUtils.protocol property is a `web.USVString` the protocol scheme of the URL, including the final ':'. `string = object.protocol; object.protocol = string;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/protocol`
(set-referrer-policy! this val)
Property.
[Experimental]
The HTMLAnchorElement.referrerPolicy property reflect the HTML
attribute of the <a>
element defining which referrer is sent
fetching the resource.
refStr = anchorElt.referrerPolicy; anchorElt.referrerPolicy = refStr;
See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/referrerPolicy
Property. [Experimental] The HTMLAnchorElement.referrerPolicy property reflect the HTML attribute of the `<a>` element defining which referrer is sent fetching the resource. `refStr = anchorElt.referrerPolicy; anchorElt.referrerPolicy = refStr;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/referrerPolicy`
(set-rel! this val)
Property.
The HTMLAnchorElement.rel property reflects the rel attribute.
is a web.dom.DOMString
containing a space-separated list of
types indicating the relationship between the resource represented
the <a>
element and the current document.
var relstr = anchorElt.rel; anchorElt.rel = relstr;
See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/rel
Property. The HTMLAnchorElement.rel property reflects the rel attribute. is a `web.dom.DOMString` containing a space-separated list of types indicating the relationship between the resource represented the `<a>` element and the current document. `var relstr = anchorElt.rel; anchorElt.rel = relstr;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/rel`
(set-rev! this val)
Property.
Is a DOMString representing that the rev HTML attribute, specifying relationship of the link object to the target object. Note: Currently the W3C HTML 5.2 spec states that rev is no obsolete, whereas the WHATWG living standard still has it labeled Until this discrepancy is resolved, you should still assume it obsolete.
Property. Is a DOMString representing that the rev HTML attribute, specifying relationship of the link object to the target object. Note: Currently the W3C HTML 5.2 spec states that rev is no obsolete, whereas the WHATWG living standard still has it labeled Until this discrepancy is resolved, you should still assume it obsolete.
(set-search! this val)
Property.
The HTMLHyperlinkElementUtils.search property is a search string,
called a query string, that is web.USVString
containing a '?'
by the parameters of the URL.
string = object.search; object.search = string;
See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/search
Property. The HTMLHyperlinkElementUtils.search property is a search string, called a query string, that is `web.USVString` containing a '?' by the parameters of the URL. `string = object.search; object.search = string;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/search`
(set-shape! this val)
Property.
Is a DOMString representing the shape of the active area.
Property. Is a DOMString representing the shape of the active area.
(set-tabindex! this val)
Property.
Is a long containing the position of the element in the tabbing order for the current document.
Property. Is a long containing the position of the element in the tabbing order for the current document.
(set-target! this val)
Property.
Is a DOMString that reflects the target HTML attribute, indicating to display the linked resource.
Property. Is a DOMString that reflects the target HTML attribute, indicating to display the linked resource.
(set-text! this val)
Property.
Is a DOMString being a synonym for the Node.textContent property.
Property. Is a DOMString being a synonym for the Node.textContent property.
(set-type! this val)
Property.
Is a DOMString that reflects the type HTML attribute, indicating MIME type of the linked resource.
Property. Is a DOMString that reflects the type HTML attribute, indicating MIME type of the linked resource.
(set-username! this val)
Property.
The HTMLHyperlinkElementUtils.username property is a web.USVString
the username specified before the domain name.
string = object.username; object.username = string;
See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/username
Property. The HTMLHyperlinkElementUtils.username property is a `web.USVString` the username specified before the domain name. `string = object.username; object.username = string;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/username`
(shape this)
Property.
Is a DOMString representing the shape of the active area.
Property. Is a DOMString representing the shape of the active area.
(tabindex this)
Property.
Is a long containing the position of the element in the tabbing order for the current document.
Property. Is a long containing the position of the element in the tabbing order for the current document.
(target this)
Property.
Is a DOMString that reflects the target HTML attribute, indicating to display the linked resource.
Property. Is a DOMString that reflects the target HTML attribute, indicating to display the linked resource.
(text this)
Property.
Is a DOMString being a synonym for the Node.textContent property.
Property. Is a DOMString being a synonym for the Node.textContent property.
(to-string this)
Method.
The HTMLHyperlinkElementUtils.toString() stringifier method returns
web.USVString
containing the whole URL. It is a read-only version
HTMLHyperlinkElementUtils.href
.
string = object.toString();
See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/toString
Method. The HTMLHyperlinkElementUtils.toString() stringifier method returns `web.USVString` containing the whole URL. It is a read-only version `HTMLHyperlinkElementUtils.href`. `string = object.toString();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/toString`
(type this)
Property.
Is a DOMString that reflects the type HTML attribute, indicating MIME type of the linked resource.
Property. Is a DOMString that reflects the type HTML attribute, indicating MIME type of the linked resource.
(username this)
Property.
The HTMLHyperlinkElementUtils.username property is a web.USVString
the username specified before the domain name.
string = object.username; object.username = string;
See also: https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/username
Property. The HTMLHyperlinkElementUtils.username property is a `web.USVString` the username specified before the domain name. `string = object.username; object.username = string;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/username`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close