NativeWindowToNativeDocument - web automation method
Not available in Open Twebst edition!
Internet Explorer automation method that returns a native Internet Explorer document object ( IHTMLDocument2 )
from a native window object ( IHTMLWindow2 ).
Applies to:
- Core
var nativeDocument = coreObj.NativeWindowToNativeDocument(nativeWindow);
Arguments:
-
-
nativeWindow
is the native IHTMLWindow2 window object to be converted to a native IHTMLDocument2 document.
Remarks:
-
The method is useful for BHO/IE extensions and MSHTML programming, when the document is not directly accessible due to cross-domain frame scripting security restriction.
Read more about this on When IHTMLWindow2::get_document returns E_ACCESSDENIED
and When IHTMLWindow2.document throws UnauthorizedAccessException articles.
Example:
None.
See also:
- AttachToNativeBrowser | AttachToNativeFrame | Core | document | nativeFrame | NativeWindowToNativeBrowser
©
2014 CodeCentrix Software. All rights reserved.