I have just learned (no thanks to IE) that I cannot use document.write scripts in XHTML. However, it seems there is a way around it by using the DOM to add elements. I don't know. It's foreign to me.
Here's the JS:
copyright=new Date();
update=copyright.getFullYear();
document.write("Copyright © 2004-"+ update + " flip-flop media");
So, is there a way to use this script in XHTML? IE 8 shows an empty space with an error warning. IE 7 shows just the warning. FF does display it properly.
And it shows up with no errors and displays properly on one of my pages: http://clients.flipflopmedia.com
But not on the main page: http://www.flipflopmedia.com/NewSite/index.html