Posts Tagged ‘IHtmlDocument2_Write’

JavaScript in PowerShell

May 1, 2011

$o=new-object -com internetexplorer.application
$o.navigate2(“about:blank”)
$o.visible=$true
$c=”<script>alert(“”Powershell””)</script>”
$o.Document.IHtmlDocument2_Write($c)

Change quotes