Welcome to WebmasterWorld Guest from 22.214.171.124
oh - and welcome to WebmasterWorld :)
This goes into the BODY into the appropriate placement and does not need to be echoed in the HEAD section. Then the file named filename.js contains the content.
document.write (" ");
command line for my external .JS file. Don't forget to comment out the quotes that are a part of the navigation, with a backslash (\), like
document.write ("<a href=\"filename.htm\"></a>");
"...Don't forget to comment out the quotes that are a part of the navigation, with a backslash (\), like
document.write ("<a href=\"filename.htm\"></a>"); ..."
document.write ('<a href="filename.htm"></a>');
You still might need to escape quotes from time to time, depending on the context, but much less often, and the code will be easier to read and debug.
You also need to escape the / of the closing </a> tag, and of any other closing tags, by changing to this format: <\/a> instead.