1 out of 3 rated this helpful - Rate this topic

Refresh Method

Reloads the file that is currently displayed in the object.

Syntax

        object.Refresh()

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.

Applies To

InternetExplorer, WebBrowser

See Also

Refresh2
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ