mattmac_ca
September 7th, 2002, 12:59 PM
I am trying to use the following java script code on my web site
var dateModified = document.lastModified;
mydate = dateModified.slice(0,10);
document.write("<b>Last updated: " + mydate + "</b>");
When I try and view the web page, I get the following error
Error. 'document.all.modified' is null or not an object
Now, the code still works, it does display the last updated date, but, i would like to know what is causing this error.
Thank you
Matthew MacPherson
var dateModified = document.lastModified;
mydate = dateModified.slice(0,10);
document.write("<b>Last updated: " + mydate + "</b>");
When I try and view the web page, I get the following error
Error. 'document.all.modified' is null or not an object
Now, the code still works, it does display the last updated date, but, i would like to know what is causing this error.
Thank you
Matthew MacPherson