Hello,
I have a function in a php file that opens a new window, passing a var
to another function (after a short delay), and the seconf fucntion supposed
to write data in the opened window.
Everything goes well with opening the window, but I get an error: access denied, why?
I have tested it locally and it works, but on the server it doesn’t.
Here are the functions:
function opwin (iml) {
gp = iml;
if (!galwin || galwin.closed) {
galwin = window.open “
“twin”,”height=400,width=400,toolbar=no,scrollbars=no”);
setTimeout(“mtjd(gp)”, 50);
} else if (galwin.focus){
galwin.focus();
}
}
function mtjd(timga){
galwin.document.write(‘<img src=’+timga+’/>’);
}
Thanks,
A.O