I have a webpage (i.e., a single-page website) and I want to add a script showing the last time the page was updated (by me), that is, the last time the source HTML file changed.
If I use this code inside the HTML document
document.write(document.lastModified)
Last updated on
I get the current date (I mean, each time I refresh the page, the date changes), I guess because actually the file is being changed by the script.
So, what can I do??