--- title: HTMLHyperlinkElementUtils slug: Web/API/HTMLHyperlinkElementUtils tags: - API - Experimental - Mixin - NeedsTranslation - TopicStub - URL API translation_of: Web/API/HTMLHyperlinkElementUtils ---
{{ApiRef("URL API")}}{{SeeCompatTable}}
The HTMLHyperlinkElementUtils
mixin defines utility methods and properties to work with {{domxref("HTMLAnchorElement")}} and {{domxref("HTMLAreaElement")}}. These utilities allow to deal with common features like URLs.
There are no objects of this type, but several objects {{domxref("HTMLAnchorElement")}} and {{domxref("HTMLAreaElement")}} implement it.
This interface doesn't inherit any property.
':'
.':'
, and the port of the URL.'/'
followed by the path of the URL.'?'
followed by the parameters of the URL.'#'
followed by the fragment identifier of the URL.This interface doesn't inherit any method.
Specification | Status | Comment |
---|---|---|
{{SpecName('HTML WHATWG', '#htmlhyperlinkelementutils', 'HTMLHyperlinkElementUtils')}} | {{Spec2('HTML WHATWG')}} | Initial definition |
{{ CompatibilityTable() }}
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | {{CompatNo}} [1] | {{CompatGeckoDesktop("22")}} [2] | {{CompatNo}} [1] | {{CompatNo}} [1] | {{CompatNo}} [1] |
username and password |
{{CompatUnknown}} | {{CompatGeckoDesktop("26")}} [2] | {{CompatNo}} | {{CompatUnknown}} | {{CompatUnknown}} |
origin |
{{CompatVersionUnknown()}} | {{CompatGeckoDesktop("26")}} [2] | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} |
Feature | Android | Chrome for Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Basic support | {{CompatNo}} [1] | {{CompatNo}} [1] | {{CompatGeckoMobile("22")}} [2] | {{CompatNo}} [1] | {{CompatNo}} [1] | {{CompatNo}} [1] |
username and password |
{{CompatUnknown}} | {{CompatUnknown}} | {{CompatGeckoMobile("26")}} [2] | {{CompatNo}} | {{CompatUnknown}} | {{CompatUnknown}} |
origin |
{{CompatUnknown}} | {{CompatUnknown}} | {{CompatGeckoMobile("26")}} [2] | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} |
[1] Though not grouped in a single abstract interface, these methods are directly available on the interfaces that implement it, if this interface is supported.
[2] This mixin was called URLUtils
before Firefox 45, and was also implemented to other by other interfaces, like {{domxref("Location")}}. From Firefox 45, the other interfaces implements their own version of the properties and methods they need.