>That should work. The reason it might not is because the document might not be loaded yet in the IFrame. In that case you don't get the document reference...
Based on message #
1539411, I have found the reason. Can you take a look at it and see if that makes sense?