I am using document.write to remove problem coding in my navigation bar for search engine optimization purposes. I started the external text file as follows:
<! document.write (“ ”)
//–>
Whereas, I put the entire code to remove the HTML from the page and then pasted it between the quotation marks. I even left the brackets in the coding ( ) – was that okay?
I then saved the file on my web server. My web server would not accept the .js extension when I tried to name the file so I named it without an extension.
On the HTML page, I coded the script as follows:
<script language=”JavaScript” src=”
type=”text/javascript”></script>
Now, the problem is the navigation bar – the section to the right is not appearing. You can view this at this URL:
[url]http://www.skunkyrunky.com/test-doc.htm
I want it to look like this at this URL:
[url]http://www.skunkyrunky.com/index.html
Please help me. Thank you.