Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- JScript loaded in head writes to document body


rewboss - 9:54 am on Jun 20, 2002 (gmt 0)


PsychoTekk's solution will generate a runtime error in Netscape 4.

I'd take the general idea of using an external .js file, but I would put the document.write() statements in a function:

function writeDiv(){
document.write('.......');
}

Then, in the HTML file itself, you need to write:

<script>
writeDiv();
</script>

However, this unreliable to say the least. A far more workable solution would be to use a client-side script.


Thread source:: http://www.webmasterworld.com/javascript/139.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com