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.
// 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");