Saturday, May 8, 2010

GoBack Method GoForward Method

GoBack Method, GoForward Method, GoHome Method, GoSearch Method

strLink= "http://www.google.com"
Set objIExplorer = CreateObject("internetexplorer.application")
objIExplorer.visible = True
objIExplorer.navigate strLink

Do While objIExplorer.Busy
WScript.Sleep 1000
Loop

objIExplorer.navigate "yahoo.com"

Do While objIExplorer.Busy
WScript.Sleep 1000
Loop

objIExplorer.GoBack

Do While objIExplorer.Busy
WScript.Sleep 1000
Loop

objIExplorer.GoForward

Do While objIExplorer.Busy
WScript.Sleep 1000
Loop

objIExplorer.GoHome

Do While objIExplorer.Busy
WScript.Sleep 1000
Loop

objIExplorer.GoSearch



See all Methods & Properties of InternetExplorer Object here.