Property

Method

Event

 

 

BaseURL v5.0.0.6

Specifies the URL of a document.

Syntax

    [get] HRESULT BaseURL(
    BSTR* pVal
    );
    [put] HRESULT BaseURL(
    BSTR newVal
    );

Parameters

[get] pVal

[out, retval] Prints the content of the <BASE> tag of the document.

[put] newVal

[in] Enters BaseURL to be specified.

Return Values

'0' (always)

Remarks

Refers to the BASE tag in the BODY tag. When this property is set, the BASE tag is added or changed. If the content is gotten, the BASE tag content is retrieved. An empty string is returned if there is no BASE tag.

Set BaseURL when the images or objects do not display in the current document which is open remotely. This property is different from BaseURL set in the initialization file.

Sample Codes

VB Script [get]

   dim object
set object = document.editForm
edit = object.wec.BaseURL

VB Script [put]

   dim object
set object = document.editForm
object.wed.HeadValue = "<title>Test</title>"
object.wec.BaseURL = "http://www.aabbcc.com/images/test"