Icon Document Property

property Document: THTMLDocument

Available In: Visual Client Applications

Returns the DOM (Document Object Model) document instance of the currently-loaded HTML document. If the URL property has been specified, then this property will return the document instance once the OnLoad event has been triggered and the Loaded property is True.

Information Accessing the DOM document instance allows you to manipulate the children of the DOM document instance in code instead of having to use HTML strings, which is the case when using the DocumentText property. However, this access is subject to same-origin security constraints, and will be denied if the contents of the TBrowser instance were loaded from a different origin.
Image