So I am using the HTML Macro at the bottom of my page and inserting the following code into the created HTML box. When I preview the page it looks great, but when I save it, all I see is the time stamp. My page content disappears Clearly I am doing something wrong but can anyone help me out?
| |
|---|
<!DOCTYPE html>
<html>
<body>
<h1>Time of Last Edit</h1>
<h2></h2>
<p>This document was last modified:</p>
<p id="demo"></p>
<script>
let text = document.lastModified;
document.getElementById("demo").innerHTML = text;
</script>
</body>
</html> |
|