Javascript Reference
Categories: AREA

javascript AREA pathname

@March 15, 2008, 1:22 a.m.
pathname Firefox/Netscape/NN 2 IE 3 Chrome/Safari/DOM 1  

Read/Write  

Provides 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.getElementById("myLink").pathname = "/images/logoHiRes.gif";
 
Value

String.

 
Default

None.


Powered by Linode.