Property "Base Href" <basehref>

Top  Previous  Next

The relative references to external files (images, java scripts, etc) made in an Html page are resolved to the absolute addresses by the web browsers using a document base.

The document base is taken from the URI that the web browser currently focused on.

Example:

http://www.moryazilim.com/moremotion/products/index.html

 
Assume that the above URI is entered into the address field of a web browser. When the HTML page is displayed by the browser it will take the http://www.moryazilim.com/moremotion/products part of the URI as the document base and resolve all the relative references to the external files in the HTML page using this base.

If, for instance the HTML file contains such a reference

src="../../images/logo.gif"

 
it will be resolved to

"http://www.moryazilim.com/images/logo.gif"

 

Using "Base Href" to set up a relativity base

If you set a value to Base Href Property the Application Studio will create a <base href="base_href_value"/> tag during the build (not during the preview) in the head section of the Html page.

This tag will help the browsers or e-mail client programs to calculate the absolute addresses of the relatively referenced source files.

See Prefix For Page Sources