From what I understand, DocumentComplete fires when a page is done loading. However, if there is a frame on the page, it will ALSO fire when that frame is done loading. So if the main page hasn't finished loading yet but a frame has, DocumentComplete fires telling the code to continue on because the page is done loading and I'll end up getting errors.
The page in question has a single <iframe>. It looks like documentcomplete is firing when this iframe is done loading. There are no other <frame> tags on the page. Is there a way for me to just have documentcomplete fire when the main page is loading? Or some other solution that will prevent this premature firing or wait for 2 documentcompletes to fire.