JavaScript window.status and Status Bar Messages

Legacy browser behavior: window.status is deprecated. Modern browsers generally do not let ordinary page scripts replace the destination/status text users rely on. This page is kept for historical learning and to explain why older examples behave differently today.

The original tutorial used mouseover and mouseout on links to try to replace status-bar text. Both demonstrations are retained below.

On this page

Original status-message demo Top ↑

Visit Home page

Modernized event-listener form of the original source

const link = document.getElementById("homeLink");
link.addEventListener("mouseover", () => { window.status = "Welcome to Plus2net.com Home page"; });
link.addEventListener("mouseout", () => { window.status = "Enjoy reading JavaScript tutorials"; });

Historical attempt to display a different destination Top ↑

The next link still goes to Plus2net, exactly as the original facility did. The script attempts to show a Google URL in window.status. Modern browsers are expected to ignore or tightly control this behavior, which protects users from destination spoofing.

Visit Google

Modernized event-listener form of the original source

const link = document.getElementById("misleadingLink");
link.addEventListener("mouseover", () => { window.status = "https://www.google.com"; });
link.addEventListener("mouseout", () => { window.status = ""; });

Modern replacement: visible page text Top ↑

If you need to display contextual help, place it in the document where users can reliably see it instead of trying to control browser chrome.

const help = document.getElementById("linkHelp");
const link = document.getElementById("docsLink");
link.addEventListener("focus", () => { help.textContent = "Opens the JavaScript documentation page"; });
link.addEventListener("blur", () => { help.textContent = ""; });

Older Firefox setting mentioned by this tutorial Top ↑

Older versions of this tutorial instructed readers to change dom.disable_window_status_change in about:config. That browser-configuration instruction is retained here as historical context, but it is not recommended as part of modern web development. A page should not depend on users changing internal browser preferences.

Window Object Bookmark a page Alert Window




Subscribe to our YouTube Channel here



plus2net.com







Mark

01-03-2012

It does not work in my IE9 and Win7. The samples above show the real links in my status bar.



We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles Contact us
©2000-2026   plus2net.com   All rights reserved worldwide Privacy Policy Disclaimer