Methods


ClientToWindow Method

Description

Converts the client coordinates of a point to window coordinates. Client coordinates are relative to the upper-left corner of the client area; window coordinates are relative to the upper-left corner of a window.

Syntax


object.ClientToWindow pcx, pcy

PartDescription
object Required. An object expression that evaluates to an object in the Applies To list.
pcx Required. A long integer value that specifies the x-coordinate of the point in client coordinates. When ClientToWindow returns, this variable contains the x-coordinate of the point in window coordinates.
pcy Required. A long integer value that specifies the y-coordinate of the point in client coordinates. When ClientToWindow returns, this variable contains the y-coordinate of the point in window coordinates.

Applies To

WebBrowserApp


GetProperty Method

Description

Retrieves the current value of a property associated with the given object.

Syntax

object.GetProperty szProperty, vtValue

PartDescription
object Required. An object expression that evaluates to an object in the Applies To list.
szProperty Required. A string expression that contains the name of the property to retrieve.
vtValue Required. A variable that receives the current value of the property.

Applies To

WebBrowserApp

See Also

PropertyChange, PutProperty


GoBack Method

Description

Navigates backward one item in the history list.

Syntax

object.GoBack

PartDescription
object Required. An object expression that evaluates to an object in the Applies To list.

Applies To

WebBrowser, WebBrowserApp

See Also

GoForward, GoHome, GoSearch


GoForward Method

Description

Navigates forward one item in the history list.

Syntax

object.GoForward

PartDescription
object Required. An object expression that evaluates to an object in the Applies To list.

Applies To

WebBrowser, WebBrowserApp

See Also

GoBack, GoHome, GoSearch


GoHome Method

Description

Navigates to the current home or start page, as specified in the Internet Explorer Options dialog box and Internet Control Panel.

Syntax

object.GoHome

PartDescription
object Required. An object expression that evaluates to object in the Applies To list.

Applies To

WebBrowser, WebBrowserApp

See Also

GoBack, GoForward, GoSearch


GoSearch Method

Description

Navigates to the current search page, as specified in the Internet Explorer Options dialog box and Internet Control Panel.

Syntax

object.GoSearch

PartDescription
object Required. An object expression that evaluates to an object in the Applies To list.

Applies To

WebBrowser, WebBrowserApp

See Also

GoBack, GoForward, GoHome


Navigate Method

Description

Navigates to the resource identified by a Universal Resource Locator (URL), or to the file identified by a full path.

Syntax


object.Navigate URL [Flags,] [TargetFrameName,] [PostData,] [Headers]

PartDescription
object Required. An object expression that evaluates to an object in the Applies To list.
URL Required. A string expression that evaluates to the URL of the resource to display, or the full path of the file to display.
Flags Optional. A constant or value that specifies whether to add the resource to the history list, whether to read from or write to the cache, and whether to display the resource in a new window. It can be a combination of the following values.
Constant Value Meaning
navOpenInNewWindow 1 Open the resource or file in a new window.
navNoHistory 2 Do not add the resource or file to the history list. The new page replaces the current page in the list.
navNoReadFromCache 4 Do not read from the disk cache for this navigation.
navNoWriteToCache 8 Do not write the results of this navigation to the disk cache.
TargetFrameName Optional. A string expression that evaluates to the name of a frame in which to display the resource.
PostData Optional. Data to send to the server during the HTTP POST transaction. For example, the POST transaction is used to send data gathered by an HTML form. If this parameter does not specify any post data, the Navigate method issues an HTTP GET transaction. This parameter is ignored if URL is not an HTTP URL.
Headers Optional. A value that specifies additional HTTP headers to send to the server. These headers are added to the default Internet Explorer headers. The headers can specify such things as the action required of the server, the type of data being passed to the server, or a status code. This parameter is ignored if URL is not an HTTP URL.

Applies To

WebBrowser, WebBrowserApp


PutProperty Method

Description

Sets the value of a property associated with the given object.

Syntax

object.PutProperty szProperty, vtValue

PartDescription
object Required. An object expression that evaluates to an object in the Applies To list.
szProperty Required. A string expression that contains the name of the property to set.
vtValue Required. A variable that specifies the new value of the property.

Applies To

WebBrowserApp

See Also

GetProperty, PropertyChange


Quit Method

Description

Closes the Internet Explorer application.

Syntax

object.Quit

PartDescription
object Required. An object expression that evaluates to an object in the Applies To list.

Applies To

WebBrowserApp

See Also

Quit, Refresh, Refresh2, Stop


Refresh Method

Description

Reloads the file that the WebBrowser control is currently displaying.

Syntax

object.Refresh

PartDescription
object Required. An object expression that evaluates to an object in the Applies To list.

Applies To

WebBrowser, WebBrowserApp

See Also

Refresh2, Stop


Refresh2 Method

Description

Reloads the file that the WebBrowser control is currently displaying. Unlike the Refresh method, this method contains a parameter that specifies the refresh level.

Syntax

object.Refresh2 [Level]

PartDescription
object Required. An object expression that evaluates to an object in the Applies To list.
Level Optional. A constant or value that specifies the refresh level. It can be one of the following constants or values.
Constant Value Meaning
refreshAll 0 Perform a full refresh that includes sending a "pragma:nocache" header to the server (HTTP URLs only).
refreshDontSendNoCache 1 Perform a lightweight refresh that does not include sending the HTTP "pragma:nocache" header to the server.

Remarks

The "pragma:nocache" header tells the server not to return a cached copy, but to ensure that the information is as fresh as possible. Browsers typically send this header when the user selects refresh, but the header causes problems for some servers.

Applies To

WebBrowser, WebBrowserApp

See Also

Quit, Refresh, Stop


Stop Method

Description

Cancels any pending navigation or download operation, and stops any dynamic page elements such as background sounds and animations.

Syntax

object.Stop

PartDescription
object Required. An object expression that evaluates to an object in the Applies To list.

Applies To

WebBrowser, WebBrowserApp

See Also

BeforeNavigate, DownloadBegin, ProgressChange, Refresh, Refresh2

© 1996 Microsoft Corporation