J
Jeyaprakash(CK) Chittu
The following code gives me a Access Denied error in IE6. It looks like
this problem was there before in the earlier versions of IE browser liek
4.0 etc. Even delaying does not seem to help
<script>
var dlg = window.open("", "_blank");
dlg.focus();
var doc = dlg.document;
doc.open("text/html");
doc.writeln ("<html><body>Hello world</body></html>");
</script>
I tried this workaround also but it still gives me Access Denied error
<script>
var dlg = window.open("myblank.htm", "_blank");
dlg.focus();
function updatePage() {
var doc = dlg.document;
doc.open("text/html");
doc.writeln ("<html><body>Hello world</body></html>");
}
</script>
In myblank.htm i put a onload script to call opener.updatePage() even
then i get access denied error at line var doc = dlg.document.
Any ideas and clues
Thanks
CK
this problem was there before in the earlier versions of IE browser liek
4.0 etc. Even delaying does not seem to help
<script>
var dlg = window.open("", "_blank");
dlg.focus();
var doc = dlg.document;
doc.open("text/html");
doc.writeln ("<html><body>Hello world</body></html>");
</script>
I tried this workaround also but it still gives me Access Denied error
<script>
var dlg = window.open("myblank.htm", "_blank");
dlg.focus();
function updatePage() {
var doc = dlg.document;
doc.open("text/html");
doc.writeln ("<html><body>Hello world</body></html>");
}
</script>
In myblank.htm i put a onload script to call opener.updatePage() even
then i get access denied error at line var doc = dlg.document.
Any ideas and clues
Thanks
CK