Date & Time Status Bar Script

The ultimate status bar utility. This script combines a live, ticking clock with the current date, providing a full time-stamping tool that sits discreetly at the bottom of the user's browser window.

Visual Simulation

Simulation of the combined display in a compatible browser:

Main Webpage Content

Loading... Connected

JavaScript Code Snippet

<script>
function fullStatusBarClock() {
    var d = new Date();
    var dateStr = d.toDateString();
    var timeStr = d.toLocaleTimeString();
    
    // Combine date and ticking time
    window.status = "Today is: " + dateStr + " | Local Time: " + timeStr;
    
    // Update every second
    setTimeout(fullStatusBarClock, 1000);
}

// Initialize on page load
window.onload = fullStatusBarClock;
</script>

FAQ

No. The script only starts running after the window has fully loaded (window.onload), ensuring it doesn't block the rendering of your site content.

Yes. You can use toLocaleTimeString('en-GB') to force a 24-hour format regardless of the user's local settings.