Javascript Reference
Categories: BASE

javascript BASE href

@June 17, 2009, 6:18 p.m.
href Firefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 1  

 

Read/Write  

Provides the URL of a document whose server path is to be used as the base URL for all relative references in the document. This is typically the URL of the current document, but it can be set to another path if it makes sense to your document organization and directory structure.

 
Example
 
document.getElementById("myBase").href = "http://javascript.gakaa.com";
 
Value

String of complete or relative URL.

 
Default

Current document pathname.


Powered by Linode.