Hi,
I have the following javascript:
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.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); }
Below is the code I am using in the html page:
Any ideas why this could be working incorrectly on my server?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> </noscript> <span id="datemod"></span> </div>
Thanks,
Nightwalker




Reply With Quote