Reloads the page currently displayed in the WebBrowser control. Unlike the Refresh method, this method contains a parameter that specifies the refresh level.
Syntax
object.Refresh2 [Level]
Parameters
- 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.
REFRESH_NORMAL 0 Perform a lightweight refresh that does not include sending the HTTP "pragma:nocache" header to the server. REFRESH_IFEXPIRED 1 Perform a lightweight refresh if the page has expired. REFRESH_COMPLETELY 3 Perform a full refresh that includes sending a "pragma:nocache" header to the server (HTTP URLs only).
Remarks
The "pragma:nocache" header tells the server not to return a cached copy. This ensures that the information is as fresh as possible. Browsers typically send this header when the user selects refresh, but the header can cause problems for some servers.
Applies To
InternetExplorer, WebBrowser
See Also
Quit, Refresh, Stop