property URL.hrefThe href property of the URL interface is a string that represents the complete URL. ExamplesExample 1 const myURL = new URL('https://foo.example.org/bar?baz=qux#quux'); console.log(myURL.href); // Logs "https://foo.example.org/bar?baz=qux#quux" TypestringSeehttps://developer.mozilla.org/docs/Web/API/URL/href