Hello,
excuse me in advance for my poor english...
I have a problem with NS 4.7 (I know, it is old, but I have no
choice...) :
So, I have a page with a link to open a new window:
var strHtml = '<html><head><t itle>title_of_w indow</title>' +
'<LINK rel=stylesheet href=theme.css> '+
'<SCRIPT LANGUAGE="JavaS cript" SRC="my_script. js"></SCRIPT>' +
'</HEAD><BODY onLoad="fonc_on Load();" class=Body topmargin=0
leftmargin=0 MARGINWIDTH=0 MARGINHEIGHT=0> ' +
'blablabla' +
'</body></html>';
var win = window.open('', 'window_name', 'parameters');
win.document.wr ite(strHtml);
win.document.cl ose();
win.focus();
My problem concerns the tag "onLoad " of the "BODY" tag: with IE, the
"fonc_onLoa d()" starts normally (this function is in "my_script.js") ,
but with NS 4.7 (ou 4.51), the <SCRIPT> tag is ignored (you can view the
window's source code), so the "fonc_onLoa d()" function cannot not start.
Any help would be highly appreciated.
Thank you very much in advance.
--
Yours sincerely, Thierry
excuse me in advance for my poor english...
I have a problem with NS 4.7 (I know, it is old, but I have no
choice...) :
So, I have a page with a link to open a new window:
var strHtml = '<html><head><t itle>title_of_w indow</title>' +
'<LINK rel=stylesheet href=theme.css> '+
'<SCRIPT LANGUAGE="JavaS cript" SRC="my_script. js"></SCRIPT>' +
'</HEAD><BODY onLoad="fonc_on Load();" class=Body topmargin=0
leftmargin=0 MARGINWIDTH=0 MARGINHEIGHT=0> ' +
'blablabla' +
'</body></html>';
var win = window.open('', 'window_name', 'parameters');
win.document.wr ite(strHtml);
win.document.cl ose();
win.focus();
My problem concerns the tag "onLoad " of the "BODY" tag: with IE, the
"fonc_onLoa d()" starts normally (this function is in "my_script.js") ,
but with NS 4.7 (ou 4.51), the <SCRIPT> tag is ignored (you can view the
window's source code), so the "fonc_onLoa d()" function cannot not start.
Any help would be highly appreciated.
Thank you very much in advance.
--
Yours sincerely, Thierry
Comment