Click to See Complete Forum and Search --> : Javascript Include Question


jennAshton
11-20-2003, 03:56 PM
I know you can use something like

document.write('<font size="2">Copyright 2003 dummy text. All Rights Reserved</font>');

and use it as Javascript Include call by doing
<html>
<!-- header tags go here... ->
<body>
<p>Typical body content here</p>
<script language="JavaScript" src="copyright.js"></script>
</body>
</html>

The question is I would like to include a lot of HTML tags and codes. Is there a way document.write will write out whole page of codes rather than just one line?

I know you can use document.writeln('') but again, that only writes out one line of code. Is there another solution to use?

Thanks.

96turnerri
11-20-2003, 05:09 PM
there is no other way as far as i know ;)