Baseline Widely available
The HTMLAreaElement.toString()
stringifier method returns a string containing the whole URL. It is a read-only version of HTMLAreaElement.href
.
None.
Return valueA string containing the element's complete URL.
Examples Calling toString on an area element// An <area id="myArea" href="/en-US/docs/HTMLAreaElement"> element is in the document
const area = document.getElementById("myArea");
area.toString(); // returns 'https://developer.mozilla.org/en-US/docs/HTMLAreaElement'
Specifications Browser compatibility See also
HTMLAreaElement
interface it belongs to.RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4