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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

checking for web page downloadcomplete

Status
Not open for further replies.

Horrid

Programmer
May 20, 1999
373
I am using the webbrower control and need some code to execute when the entire page has finished loading. Not a problem for non frame pages but frames trigger the downloadcomplete event after every frame loads, not after the entire page.

Is there a easy way to check when the page has loaded so I know when to execute my code?

Current plan is for a counter that checks the number of frames, the number of times the downloadcomplete event fires and just wait till all frames are loaded.

Thanks
 
found it

on the documentcomplete event I just added the following

if object.ReadyState = READYSTATE_COMPLETE then
..code...
end if

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top