Easy Tutorial
❮ Prop Video Width Jsref Prototype Boolean ❯

Area pathname Attribute


Definition and Usage

The pathname attribute sets or returns the pathname part of the href attribute value.

Syntax


Browser Support

All major browsers support the pathname attribute.


Tips and Notes

Note: In the following example, IE and Opera return "jsref/venus.htm", but Firefox, Chrome, and Safari return "/jsref/venus.htm".


Example

The following example returns the pathname of the href attribute value in the "Venus" area:

Output of the above example:

❮ Prop Video Width Jsref Prototype Boolean ❯