Forum Moderators: open
I have used this in the past, where iFrameObj is a reference to the iframe object:
if (IFrameObj.contentDocument) {
// For Gecko
IFrameDoc = IFrameObj.contentDocument;
} else if (IFrameObj.contentWindow) {
// For IE5.5 and IE6
IFrameDoc = IFrameObj.contentWindow.document;
} else if (IFrameObj.document) {
// For IE5
IFrameDoc = IFrameObj.document;
} else {
return true;
}
This gives you a unified reference IFrameDoc to the document contained in the iframe. You could then manipulate it like this:
IFrameDoc.location.replace(URL)
Hope this helps,
ajkimoto