Name

pathname — NN 2 IE 3 DOM 1

Synopsis

Read/Write

The pathname component of the URL assigned to the element’s HREF attribute. This consists of all URL information following the last character of the domain name, including the initial forward slash symbol.

Example

document.all.myLink.pathname = "/images/logoHiRes.gif"

Value

String.

Default

None.

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.