Accessing JavaScript Global Object from IE COM

馋奶兔 提交于 2019-11-30 07:52:26

问题


Looking at Compatibility changes in IE11, we have that window.execScript is replaced with eval. Now when using the IE COM object how can we get hold of the JavaScript Global Object that has the eval function?

PowerShell:

$ie = New-Object -COM InternetExplorer.Application
$document = $ie.document
$window = $document.parentWindow
# How to get JavaScript Global Object from these?

See also this related question.

来源:https://stackoverflow.com/questions/26023915/accessing-javascript-global-object-from-ie-com

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!