|
-
document.open("text/html", "replace") doesn't work for frames in IE6
To all,
This code *will not work in IE6 when trying to replace the contents of
another frame. It used to work great in IE5 and IE5.5. Any work arounds or
suggestions would be great. It works fine when you use it to replace the
current document (document.open("text/html", "replace")). I even moved the
script to the other frame and called it from the other and it still
doesn't work.
*will not work means it adds the new contents to the history when it should
be replaced.
<script>
function replace(){
var oNewDoc = parent.frames.rightFrame.document.open("text/html",
"replace");
var sMarkup = "<HTML><HEAD><TITLE>New Document</TITLE><BODY>Hello,
world</BODY></HTML>";
oNewDoc.write(sMarkup);
oNewDoc.close();
}
</script>
Thanks,
GaryB
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks