Ashura: Netscape 4.6 unterstützt document.write('<script>'); nicht

Beitrag lesen

Hallo Merowinger.

m=parent.frames[1].document;
m.open('text/html');
m.write('<html><head><script type="text/javascript">');
m.write('function openFolder(id){parent.openFolder(this,id);}');
m.write('</script></head>');

Du musst " und / escapen. Also:

m=parent.frames[1].document;
m.open('text/html');
m.write('<html><head><script type="text/javascript">');
m.write('function openFolder(id){parent.openFolder(this,id);}');
m.write('</script></head>');

Gruß, Ashura

--
Selfcode: sh:( fo:) ch:? rl:( br:^ n4:& ie:{ mo:) va:) de:> zu:) fl:( ss:( ls:# js:|