J
Jenny
In the code below, I can write html content var t='<body
BGCOLOR=blue>'
for a new window. But if it contains javascript, such as var
t='<body onload="window.open('new1.html')">', this code will not work.
Could you confirm this and find such syntax rule for me on the
internet? Thank a lot.
<html><head>
</head><body>
<SCRIPT language=JavaScript>
w=open("new.html")
//var t='<body onload="window.open('new1.html')">'
var t='<body BGCOLOR=blue>'
w.document.write(t);
</SCRIPT ></body>
</html>
BGCOLOR=blue>'
for a new window. But if it contains javascript, such as var
t='<body onload="window.open('new1.html')">', this code will not work.
Could you confirm this and find such syntax rule for me on the
internet? Thank a lot.
<html><head>
</head><body>
<SCRIPT language=JavaScript>
w=open("new.html")
//var t='<body onload="window.open('new1.html')">'
var t='<body BGCOLOR=blue>'
w.document.write(t);
</SCRIPT ></body>
</html>