I use a document.write to create a new page, but it does not work correctly. The new page contain JavaScript and I get a error when I try to show the page in this form.
The page work if see it in it's original form.
Any help would appreciable,
Cedium.
"za" contain the new page with JavaScript.
//////////////////////////////////////////
<html>
<head>
<script language=javascript>
<!--
function start()
{
document.open();
za=" The Whole page to be write with JavaScript ( 2000 > chars )"
document.write(za);
}
function start1()
{
if (!document.layers) start();
}
function start2()
{
if (document.layers) start();
} start1();
// -->
</script>
</head>
<body onload="start2()" bgcolor="white">
</body>
</html>
//////////////////////////////////////////
The page work if see it in it's original form.
Any help would appreciable,
Cedium.
"za" contain the new page with JavaScript.
//////////////////////////////////////////
<html>
<head>
<script language=javascript>
<!--
function start()
{
document.open();
za=" The Whole page to be write with JavaScript ( 2000 > chars )"
document.write(za);
}
function start1()
{
if (!document.layers) start();
}
function start2()
{
if (document.layers) start();
} start1();
// -->
</script>
</head>
<body onload="start2()" bgcolor="white">
</body>
</html>
//////////////////////////////////////////