从IE COM访问JavaScript全局对象

时间:2014-09-24 18:28:05

标签: internet-explorer powershell com global internet-explorer-11

查看Compatibility changes in IE11,我们将window.execScript替换为eval。现在,当使用IE COM对象时,我们如何获得具有eval函数的JavaScript Global Object

的PowerShell:

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

另请参阅此相关question

0 个答案:

没有答案