This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.
string = object.username; object.username = string;
// Let's <a id="myAnchor" href="https://anonymous:firstname.lastname@example.org/en-US/docs/Location.username"> be in the document var anchor = document.getElementByID("myAnchor"); var result = anchor.username; // Returns:'anonymous'
BCD tables only load in the browser