Hi,

I have the following javascript:

HTML Code:
// Add the page last modified date automatically to bottom of the page.
window.onload = setModifiedDate;

function setModifiedDate()
{
    var dateMod = document.getElementById('datemod');
    var text = document.createTextNode(document.lastModified);

   dateMod.appendChild(text);
}
Which works but for some reason it changes the last modified date on my online websites if I just view the page in the browser.

Below is the code I am using in the html page:

HTML Code:
<script src="./javascript/extra.js" type="text/javascript"></script>

<div class="datemod"> 
			 <br/>
			<p>Date last modified:</p><noscript><p>Copyright 2009</p>&nbsp;</noscript> <span id="datemod"></span>
</div>
Any ideas why this could be working incorrectly on my server?

Thanks,


Nightwalker