Language References
Specifies the base URL to use for all relative URLs in a document.
Inline |
<base href = strURL...> |
Script |
base.href = strURL |
strURL |
String containing a valid URL. |
The property is read/write with no default value.
The following example sets the base URL of the document to a reference folder.
<head>
<base href="http://asp.net.ph/">
</head>
<body>
Click here to learn about the <a href="abkd/refs/tags/base.html">base</a> element.
</body>
Browsers will then use the <base
> element to resolve the hyperlink to:
http://asp.net.ph/abkd/refs/tags/base.html.
BASE