--- title: URL.href slug: Web/API/URL/href tags: - API - Property - Reference - URL - URL API translation_of: Web/API/URL/href ---
{{domxref("URL")}} 인터페이스의 href
속성은 전체 URL을 담은 {{domxref("USVString")}}입니다.
{{AvailableInWorkers}}
const urlString = url.href url.href = newUrlString
{{domxref("USVString")}}.
const url = new URL('https://developer.mozilla.org/ko/docs/Web/API/URL/href'); console.log(url.href); // Logs: 'https://developer.mozilla.org/ko/docs/Web/API/URL/href'
Specification | Status | Comment |
---|---|---|
{{SpecName('URL', '#dom-url-href', 'URL.href')}} | {{Spec2('URL')}} | Initial definition. |
{{Compat("api.URL.href")}}