I have a script that reads the computer date and writes it to a copyrite
footer on a web page. The idea is to avoid having to update each page
manually at the start of a new year. It works fine on Internet Explorer
but not on Mozilla.
Here's the script:
<script type="text/javascript" language="JavaS cript">
copyright=new Date();
update=copyrigh t.getYear();
document.write( "Copyright © Acme Widgets 2000-"+ update + "");
</script>
Explorer displays "Copyright © Acme Widgets 2000-2004" but Mozilla displays
it as "Copyright © Acme Widgets 2000-104"
Can anyone explain what the problem is or suggest some alternate coding
that will do what I want?
Any help will be greatly appreciated.
footer on a web page. The idea is to avoid having to update each page
manually at the start of a new year. It works fine on Internet Explorer
but not on Mozilla.
Here's the script:
<script type="text/javascript" language="JavaS cript">
copyright=new Date();
update=copyrigh t.getYear();
document.write( "Copyright © Acme Widgets 2000-"+ update + "");
</script>
Explorer displays "Copyright © Acme Widgets 2000-2004" but Mozilla displays
it as "Copyright © Acme Widgets 2000-104"
Can anyone explain what the problem is or suggest some alternate coding
that will do what I want?
Any help will be greatly appreciated.
Comment