Condividi tramite


Refresh method

Reloads the file that is currently displayed in the object.

Syntax

*object.*Refresh()

Parameters

This method has no parameters.

Return value

Type: Long

Returns S_OK if successful, or E_FAIL otherwise.

Remarks

This method is the same as clicking the Refresh button or pressing F5 in Windows Internet Explorer.

To save time and network bandwidth, the WebBrowser control and InternetExplorer application store pages from recently visited sites in cached memory on the user's hard disk. When you revisit a Web site, the page is reloaded from the local disk instead of being downloaded again from the server. To ensure that you are viewing the most current version of the page, you can force a fresh download by using the Refresh method. This method adds the "Pragma: No-cache" HTTP header to the request.

See also

InternetExplorer

WebBrowser

Refresh2