IgnoreBaseInFile

 

Type

 

Boolean

 

Description

 

This property determines the retrieval method for an embedded object (e.g. image) referenced in a page loaded from a local file. It does not affect pages loaded from the network and is False by default.

 

When set to True, the browser will ignore any <BASE> tags found in a page loaded from a local file. The browser will then attempt to load all embedded objects in that page from local files rather than over the network.

 

Example

 

REM Load all embedded images from the local disk:

WebsterPro1.IgnoreBaseInFile = True

 

Remarks

 

HTML pages may contain a <BASE> tag which would normally direct the browser to a server from which to download embedded objects specified by partially-qualified (relative) URLs.

 

Setting the IgnoreBaseInFile property instructs the browser to ignore any <BASE> tags found in a page loaded from a local file, and to ignore the network path portion in the URLs of embedded objects. The browser will then attempt to load all embedded objects in that page from local files rather than over the network, regardless of whether these objects were specified as fully qualified URLs.

 

This is typically set to True only when reading a previously captured page along with it’s embedded images from a local drive, regardless of the original URLs of the embedded objects. It complements the SaveToDisk method, which saves the HTML file and all it’s embedded objects to the same directory.