Alternatively use a loop:
Code:
var oNewWin = window.open(....);
while (!oNewWin.document)
{
//Something to pass the time here.
}
//carry on
Inside your loop you can do nothing, if the document can take a long time then you might want to look at using setTimeout to check for the new window.
I would have thought your code would have worked. Is the second page from the same server as the first? If not you will be forbidden access to the window and the DOM anyway by IE unless this is a "Trusted Site".
--
Joe (
Microsoft MVP - XML)