A
A Browne
I have this piece of code on a page footer;
<script type="text/javascript">
//<![CDATA[
<!--
if (Date.parse(document.lastModified) > 0) {
var last = new Date(document.lastModified);
document.write(last.toLocaleString());
}
-->
//]]>
</script>
It displays the last modified date perfectly in every browser I test it
on - except IE, where it does nothing.
(To specify - it works on Firefox on Windows and on Firefox, Safari and
Camino on Mac. It fails on IE on Windows. They're all I have.)
Can someone please tell me why?
TIA
Alex
<script type="text/javascript">
//<![CDATA[
<!--
if (Date.parse(document.lastModified) > 0) {
var last = new Date(document.lastModified);
document.write(last.toLocaleString());
}
-->
//]]>
</script>
It displays the last modified date perfectly in every browser I test it
on - except IE, where it does nothing.
(To specify - it works on Firefox on Windows and on Firefox, Safari and
Camino on Mac. It fails on IE on Windows. They're all I have.)
Can someone please tell me why?
TIA
Alex