Automatically printing the current local time or the file's last modified date.

// Submit event handler form.addEventListener('submit', function(e) { e.preventDefault();

The problem? HTML is static. It’s just text. It can’t "do" anything. If you wanted a guestbook, you couldn't just write HTML code to accept a new entry because HTML doesn't know how to save data to a server.

×
guestbook shtml