wnd.mshtml Property


object = wnd.mshtml(wndID, strClassName);

Returns the document object for the HTML displayed in the control. The object returned is the same as the document object which would be available to you if you would write script within the HTML page itself. Using this object you can access all HTML elements, their properties and even events.

Example

// Load a web page and check for its title
var document = app.mshtml;
document.location = "http://www.lw-tech.com";
if (document.title != "Lightweight Technologies")
    Env.LogError("Error, test failed");

Parameters

wndID
Optional. Either an integer as the zero-based index of the window of the specified class, or a string containing the window title. The string can be a regular expression. Default value is 0.
strClassName
Optional. String specifying the window class if the control is subclassed. Default is consts.MSHTML_CLASS.

See also

wnd Overview | wnd.accObj

 


© 2003 Lightweight Technologies. All rights reserved.