Return the username part of the URL for a specific area in an image-map:
The result of x will be:
The username property sets or returns the username part of the href attribute value.
The href attribute specifies the destination of a link in an area.
In a URL, the username part is the username entered by the user. It is specified after the protocol and before the password part.
Tip: Use the password property to set or return the password part of the href attribute value.
The username property is supported in all major browsers, except Internet Explorer and Safari.
Note: The username property is not supported in Opera version 12 (and earlier).
Return the username property:
Set the username property:
|username||Specifies the username part of a URL|
|Return Value:||A String, representing the username part of the URL|
Change the username part of a specific area in an image-map: