What is the difference between $ie.Navigate("URL")
and $ie.Navigate2("URL")
?
Get-Member says:
Navigate Method void Navigate (string, Variant, Variant, Variant, Variant)
Navigate2 Method void Navigate2 (Variant, Variant, Variant, Variant, Variant)
Sample Code:
$ie = New-Object -ComObject InternetExplorer.Application
$ie.visible = $true
$ie.Navigate("www.stackoverflow.com")
#or
$ie.Navigate2("www.stackoverflow.com")
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…