Display Time of Access

Log the moment of entry. This script records the exact time the visitor landed on the page and displays it as a static timestamp.

You accessed this page at:

Loading...

Copy the Script

<script>
// Capture time on load
var now = new Date();
var timestamp = now.toLocaleTimeString(); // e.g., "10:30:15 AM"

document.write("Page accessed at: " + timestamp);
</script>

Frequently Asked Questions

No. This script captures the time *once* when the page loads (static timestamp). For a moving clock, see our 'Live Digital Clock' script.

Yes. You can use `window.location.hash = new Date().getTime()` to append the timestamp to the URL bar for tracking or bookmarking unique states.

Yes. You can extract hours, minutes, and seconds separately to create formats like 'Accessed at: 14:30'.