B
Bart
Hallo,
I'm have a problem with the following script:
function wr(s)
{
//Just got tired of writing document.write,
//so I created a shorthand version
document.write(s);
}
function lm()
{
//I know this can be shorter but the original script
//tried to format the outputstring, wichh did not
//work in Mozilla, so I commented a lot out
//and this is what's left of it...
var s = document.lastModified;
return s;
}
function lmstring()
{
var s = "This page was last modified at: ";
s += lm();
s += ".";
return s;
}
<html>
...
<script type="text/JavaScript">
<!--
wr(lmstring());
// -->
</script>
....
</html>
This _should_ return the date and time the document was last modified
(saved), however in Mozilla (1.4; Windows ME) it will return the
actual current date and time (as if I'd used "new Date()").
In IE (5.50) it behaves as I expect.
What am I doing wrong (or is it a Mozilla bug ???).
(The script is in an external .js file, if that should make any
difference)
I'm have a problem with the following script:
function wr(s)
{
//Just got tired of writing document.write,
//so I created a shorthand version
document.write(s);
}
function lm()
{
//I know this can be shorter but the original script
//tried to format the outputstring, wichh did not
//work in Mozilla, so I commented a lot out
//and this is what's left of it...
var s = document.lastModified;
return s;
}
function lmstring()
{
var s = "This page was last modified at: ";
s += lm();
s += ".";
return s;
}
<html>
...
<script type="text/JavaScript">
<!--
wr(lmstring());
// -->
</script>
....
</html>
This _should_ return the date and time the document was last modified
(saved), however in Mozilla (1.4; Windows ME) it will return the
actual current date and time (as if I'd used "new Date()").
In IE (5.50) it behaves as I expect.
What am I doing wrong (or is it a Mozilla bug ???).
(The script is in an external .js file, if that should make any
difference)