HTMLBase Element

The HTMLBase element returns a string that sets the base element for the current page. <ows:HTMLBase/> should be added to the HEAD section of all CAML documents so that relative links in the document work correctly even when viewed through the CAML interpreter DLL (_vti_bin/owssvr.dll).

Syntax

<ows:HTMLBase/>

Example

The following line, included in the HEAD section of list files in the wwwroot folder, sets the base element for the currently displayed page:

document.write('<ows:HTMLBase/>');

For a given page.htm, either of the following lines,

<BASE Target=_parent Href="http://server/web/page.htm" />

or

<ows:HTMLBase/>

expands to <BASE Target=_parent Href="http://server/web/page.htm">.