I have a multi-frame layout. One of the frames contains a form that I submit via XMLHttpRequest. Now when I use document.write () to rewrite the frame with the form, and the new page I add contains any javascript, then javascript will not be explicated in IE6?
For instance:
document.write("<html><head><script>alert(1);</script></head><body>test</body></html>");
In the above case, the content of the page is replaced by a test, but alert () is not executed. This works fine in Firefox.
What is the workaround for this problem?
akshat
source
share