I have another problem with javascript. I'm trying:
document.write('
line1 text
line2 text
...
');
But javascript takes the end of the line as command limiter (although some browsers still force the semicolon, some don't AFAIK), so it didn't work, an arror msg says "unterminated string literal".
Is there a way to write multiple lines with one document.write?.
What I'm trying to do is to use an include file in a way that doesn't require a running webserver like the following methods:
Pearl cgi include
PHP include
ssi serverside include
I also don't want to use "document.write" for every line. As well as frames or iframes.
Any ideas?
document.write('
line1 text
line2 text
...
');
But javascript takes the end of the line as command limiter (although some browsers still force the semicolon, some don't AFAIK), so it didn't work, an arror msg says "unterminated string literal".
Is there a way to write multiple lines with one document.write?.
What I'm trying to do is to use an include file in a way that doesn't require a running webserver like the following methods:
Pearl cgi include
PHP include
ssi serverside include
I also don't want to use "document.write" for every line. As well as frames or iframes.
Any ideas?