Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBscript to check if the page loaded successfully or not

Status
Not open for further replies.

karnoobs

Technical User
Aug 22, 2006
25
EG
Hi

I tried hardly to find solution for this request and all what i got was return value for the window of internet explorer application even if I opened dummy website it says loaded successfully, i want to check the content of the webpage is loaded successfully or not and i cant find any property or method that flags any proper value, I copied the code below , can any one help???


Set IE = CreateObject("InternetExplorer.Application")
IE.visible = 1
IE.navigate("WScript.Sleep 3000

if IE.readystate<>4 then

WScript.Echo "Failed"

else

WScript.Echo "loaded"
end if
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top