1 2 3 4 5 6 7 8 |
$ie = New-Object -com "InternetExplorer.Application" $ie.Navigate("about:blank") $ie.visible = $true $htmlnew=('<input id="pinchable" type="button" value="Pinchame y verás" onclick="alert(''Gracias por pinchar'');" />') $ie.Document.write($htmlnew) $ie.Document.getElementById("pinchable").click() |