Method |
Description |
Goback |
EquivalentIE"Back"Button to remove |
Goforward |
EquivalentIE"Forward"Button to forward an item in the Current History List |
Gohome |
EquivalentIE"Home Page"Button to connect to the user's default home page |
Gosearch |
EquivalentIE"Search"Button to connect to the user's default search page |
Navigate |
Connect to the specifiedURL |
Refresh |
Refresh current page |
Refresh2 |
Same as above, but the refresh level can be specified. The value of the specified refresh level comes fromRefreshconstantsEnumeration table, This table is defined inExdisp. hYou can specify the following values: Refresh_normalDo not send HTTP Pragma: No-Cache hair to the server. Refresh_ifexpiredSimple refresh is performed only after the webpage expires. Refresh_continueFor internal use only. InMsdnIt saysDo not use! Do not use Refresh_completelySend requests containing the Pragma: No-Cache header to the server |
Stop |
EquivalentIE"Stop"Button to stop loading the current page and its content |
Attribute |
Description |
Application |
If the object is validWebbrowserThe Automation Object implemented by the application of the control (Idispatch). If the automation object in the Host object is invalid, this program will returnWebbrowser Control Automation Object |
Parent |
ReturnWebbrowserThe parent Automation Object of the control, usually a container, such as a host orIEWindow |
Container |
ReturnWebbrowserThe Automation Object of the control container. Generally, this value correspondsParentThe value returned by the property is the same. |
Document |
Returns an automated object for the active document. IfHtmlCurrently being displayed inWebbrowser, Then DocumentAttributeDHTML Object ModelAccess path |
Toplevelcontainer |
ReturnsBooleanValue, indicatingIEIs itWebbrowserControl top-level container.True |
Type |
ReturnedWebbrowserType of the object loaded by the control. For example, if you load. DocFile, it will return BackMicrosoft Word Document |
Left |
Return or setWebbrowserThe distance between the left side of the control window and the left side of the container window |
Top |
Return or setWebbrowserDistance between the left side of the control window and the top side of the container window |
Width |
Return or setWebbrowserThe window width, in pixels. |
Height |
Return or setWebbrowserThe height of the window, in pixels. |
Locationname |
Returns a string containingWebbrowserThe name of the currently displayed resource. If the resource A webpage is the title of a webpage. A file or folder is the name of a file or folder. |
Locationurl |
ReturnWebbrowserTheURL |
Busy |
ReturnsBooleanValue, descriptionWebbrowserCurrent loading?URLIfTrue You can useStopTo cancel the ongoing access operation. |
Webbrowser events
Private events |
Description |
Beforenavigate2 |
Triggered before navigation, not refreshed |
Commandstatechange |
It is triggered when the activation status of the command changes. It indicates when to activate or disableBackAndForward Menu item or button |
Documentcomplete |
When the entire document is completed, refresh the page without triggering |
Downloadbegin |
This event can also be triggered when a download operation is started and refreshed. |
Downloadcomplete |
This event can also be triggered when a download operation is completed and refreshed. |
Navigatecomplete2 |
Triggered after navigation, not refreshed |
Newwindow2 |
Triggered before creating a new window |
Onfullscreen |
WhenFullscreenTriggered when the attribute is changed. This event usesVarient_boolA loss Input parameters to indicateIEIs the full screen display mode (Varient_true) Or normal display mode (Varient_false) |
Onmenubar |
ChangeMenubarWhen the attribute is triggered, the parameter isVarient_boolType. Variant_trueIs visible,Variant _ falseYes hide |
Onquit |
Whether the user closes the browser or the developer callsQuitMethod, whenIEIt will be triggered when you exit |
Onstatusbar |
AndOnmenubarThe same call method indicates whether the status bar is visible. |
Ontoolbar |
The call method is the same as the preceding one, indicating whether the toolbar is visible. |
Onvisible |
The control window is visible or hidden.Varient_boolType Parameters |
Statustextchange |
If you want to change the text in the status bar, this event will be triggered, but it does not care whether the program has the status bar |
Titlechange |
Triggered when title is valid or changed |
For more technical articles, see Shi Changquan's personal website: http://www.joyvc.cn