Return the URL of the linked document:
The result of x will be:
The href property sets or returns the URL of a linked document.
The href property is supported in all major browsers.
Return the href property:
Set the href property:
Value | Description |
---|---|
URL |
Specifies the URL of the linked resource/document Possible values:
|
Return Value: | A String, representing the URL of the linked document. Returns the entire URL, including the protocol (like http://) |
---|
Change style sheet:
HTML reference: HTML <link> href attribute