J
Jari Hujanen
Thank you for the advice. I tried without success:
- the document.close() method in the end
- document.write(arrayBusiness.join(''));
In addition to that, I also tried this code (writing the whole string in
document.write as you suggested):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Comp</title>
</head>
<body>
<script type="text/javascript">
document.write('<h4>Business</h4><ul><li><a
href=\"http://www.nordea.fi/\">Nordea</a></li><li><a
href=\"http://www.aarre.fi/aarre/aloitus.jsp\">Aarre.fi</a></li><li><a
href=\"http://www.kuluttajavirasto.fi/\">Kuluttajavirasto</a></li><li><a
href=\"https://www.palkka.fi/\">Palkka.fi</a></li><li><a
href=\"http://www.prh.fi/fi/kaupparekisteri.html\">PRHn
Kaupparekisteri</a></li><li><a
href=\"http://www.suomi.fi/suomifi/suomi/asiointi_ja_lomakkeet/\">Suomi.fi
– Asiointi ja lomakkeet</a></li><li><a
href=\"http://www.syt.fi/\">Suomen Yrittäjäin Työttömyyskassa
(SYT)</a></li><li><a href=\"http://www.vakes.fi/\">Vakuutuskeskus
(Vakes)</a></li>
<li><a
href=\"http://www.vero.fi/default.asp?article=2216&language=FIN\">Vakuutusmaksuvero-ohje</a></li><li><a
href=\"http://www.vm.fi/vm/fi/10_verotus/index.jsp\">Valtiovarainministeriö
– Verotus</a></li></ul>');
document.close();
</script>
</body>
</html>
The previous code didn't work either. I tried that with and without the
document.close() method.
But I got to know about the debugger in IE7 so I used it. The debugger
always complained about an unterminated string constant. I don't understand.
I think I have used single and double quotation marks in matching pairs and
double quotation marks with the escape character in the front of them and I
wrote all the quotation marks anew in Notepad to make sure they don't come
from Word or another unsuitable word processor but nothing helps. I will try
to find info about "unterminated string constant" by Google.
- the document.close() method in the end
- document.write(arrayBusiness.join(''));
In addition to that, I also tried this code (writing the whole string in
document.write as you suggested):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Comp</title>
</head>
<body>
<script type="text/javascript">
document.write('<h4>Business</h4><ul><li><a
href=\"http://www.nordea.fi/\">Nordea</a></li><li><a
href=\"http://www.aarre.fi/aarre/aloitus.jsp\">Aarre.fi</a></li><li><a
href=\"http://www.kuluttajavirasto.fi/\">Kuluttajavirasto</a></li><li><a
href=\"https://www.palkka.fi/\">Palkka.fi</a></li><li><a
href=\"http://www.prh.fi/fi/kaupparekisteri.html\">PRHn
Kaupparekisteri</a></li><li><a
href=\"http://www.suomi.fi/suomifi/suomi/asiointi_ja_lomakkeet/\">Suomi.fi
– Asiointi ja lomakkeet</a></li><li><a
href=\"http://www.syt.fi/\">Suomen Yrittäjäin Työttömyyskassa
(SYT)</a></li><li><a href=\"http://www.vakes.fi/\">Vakuutuskeskus
(Vakes)</a></li>
<li><a
href=\"http://www.vero.fi/default.asp?article=2216&language=FIN\">Vakuutusmaksuvero-ohje</a></li><li><a
href=\"http://www.vm.fi/vm/fi/10_verotus/index.jsp\">Valtiovarainministeriö
– Verotus</a></li></ul>');
document.close();
</script>
</body>
</html>
The previous code didn't work either. I tried that with and without the
document.close() method.
But I got to know about the debugger in IE7 so I used it. The debugger
always complained about an unterminated string constant. I don't understand.
I think I have used single and double quotation marks in matching pairs and
double quotation marks with the escape character in the front of them and I
wrote all the quotation marks anew in Notepad to make sure they don't come
from Word or another unsuitable word processor but nothing helps. I will try
to find info about "unterminated string constant" by Google.