Learn about the Location.href property, including its type, code examples, specifications, and browser compatibility....imagine an <a id="myAnchor" href="https://developer.mozilla.org/en-US/Location/href">...= anchor.href; // Returns: 'https://developer.mozilla.org/en-US/Location/href'...