Web Browsing Objects
Web Browsing Objects
The Properties of the WebBrowser Control and the InternetExplorer Object 1. Application This property returns the automation object where
HTML documents are displayed (the WebBrowser control or the InternetExplorer object).
2.
3.
The Properties of the WebBrowser Control and the InternetExplorer Object 4. Document This property returns the automation object of the active
document, if any. This is not the Document object of the Scripting Model. To access the document displayed on the control, you use the following expression:
WebBrowser1.Document.Script.Document
5 6
4. 5.
3.
Title This property returns the current documents title. This is a read-only property and cant be used to change the documents title at runtime.
8.
WriteLn string This method writes the string variable into the
current document with a newline character appended to the end. The newline character is ignored by the browser anyway, so the WriteLn string method is practically the same as the Write string method.
4.
Close This method closes the document and causes all the
information written to it with the Write and WriteLn methods to be displayed, as if it were placed in an HTML document that is loaded in the browsers window.
5.