WebBrowser_Refresh

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > UIAdv (Advanced User Interface module) > WebBrowser Control >

WebBrowser_Refresh

 

Description

 

Reloads the file that is currently displayed in the object.

 

Syntax

 

n = WebBrowser_Refresh (hWnd, ctrlID)

 

Returns

 

Number

 

Parameters

 

Name

Type

Optional

Meaning

hWnd

Number

No

Handle of the dialog containing the control

ctrlID

Number

No

Control identifier

 

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.

 

Restrictions

 

See also

 

Examples