Hi TheDewd,
The only differences between our scripts are:
(1) I assigned the value of
ReadyState_Complete (which is 4) to a variable instead of hard-coding it. Doesn't matter.
(2) I use
or for logical OR; you use
||. Doesn't matter.
(3) I assigned
ReadyState and
Busy to variables. Doesn't matter.
(4) I reassign
ReadyState and
Busy inside the While loop, which I would think is necessary, although I could be wrong about that. Your code doesn't reassign
IE.ReadyState or
IE.Busy. This may matter.
I ran your code and it has the same problem as mine, i.e., the MsgBox appears before the page is done loading. Here's the result of running your code when the MsgBox appears:
- page not loaded.png (140.05 KiB) Viewed 2262 times
Here's what it looks like when the page is really done loading:
- page loaded.png (269.55 KiB) Viewed 2262 times
Note the
Scores on the left and the graphics at bottom center and bottom right. My code behaves the same as yours. Regards, Joe