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  



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.

document.getElementById("myBase").href = "";

String of complete or relative URL.


Current document pathname.

Powered by Linode.