document - web automation property
Returns the native HTML document object ( IHTMLDocument2 ) from the current IE automation library Frame object.
Applies to:
- Frame
var doc = frameObj.document;
Arguments:
- None.
Remarks:
-
This property gives access to all methods and properties of the HTML native document object.
Example:
var coreObj = new ActiveXObject("OpenTwebst.Core");
var newBrowser = coreObj.StartBrowser("http://www.codecentrix.com/");
var doc = newBrowser.topFrame.document;
WScrip.Echo("The document size is: " + doc.fileSize);
See also:
- Frame | nativeFrame
©
2017 CodeCentrix Software. All rights reserved.