Click to See Complete Forum and Search --> : need help in knowing window status!!
amit_parnerkar
03-18-2003, 04:19 PM
Hi,
I'am creating a new window from parent window and I wanna know the status of child window i.e. it is completely loaded in the browser or not?
win = open("http://www.google.com");
how to know the status of win? ie its completely loaded or not?
how to do this?
dabush
03-18-2003, 04:28 PM
var winstatus = win.status
amit_parnerkar
03-18-2003, 11:12 PM
Hi Dave,
I don't have control over child window document, because I'm invoking different URLs from open() call.
Actually my problem is I wanna measure the time to load a perticular website/URL from my home page. i.e. my homepage gets loaded on client browser and then I will invoke (lets say three) URLs from a javascript function. I wanna know the loading time for each URL in the browser
How to do this?
tim_gor
03-19-2003, 07:22 AM
I have an idea although I haven't tested it out.
I've been stuck on the same problem because I wanted to handle the Load event in one of my popup windows, but I ended up inserting an OnLoad in the body tag of the popup window like one of the previous replies suggested.
I think this might be worth a try though: My popup window uses frames and I inserted the OnLoad in the FRAMESET tag. I THINK that it only calls the Load Handler function when everything in the all the frames have loaded.... so if you can create a frameset, with one of the frames linking to the external site, then inserting an OnLoad parameter in your FRAMESET tag -- maybe it'll work?