• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Actual Wizard

Actual Wizard

Great Content From Actual Wizards

  • Blogging
  • Programming
  • Social Media
  • Marketing
You are here: Home / Programming / HTML

How to Hide the URL Address in the Browser Status Bar

November 16, 2020 by Kevin Marszalek

For one reason or another, you may want to hide the URL displayed in the browser window’s status bar when a user mouses over it.

The URL can be easily hidden by using some simple HTML and JavaScript with a few basic techniques.

Hiding the URL With HTML and JavaScript using Void(0)

This code will display some JavaScript code in the status bar instead of the URL and will still work as a normal link when clicked.

<a href="javascript:void(0)" onclick="location.href='https://actualwizard.com'">Mousing over this URL will display "void(0)" in the browser's status bar.</a>

Code Demo:

Mousing over this URL will display “void(0)” in the browser’s status bar.

Hiding the URL in the Browser Status Bar with the Pound Symbol

Note: This technique is a little bit deceptive, and using it should be avoided.

The URL displayed in the status bar will appear to be the current URL followed by the pound (#) symbol, but when the user clicks it, they will be taken to whatever URL is specified in the JavaScript.

<a href="#" onclick="location.href='https://actualwizard.com'">Mousing over this URL will display the current URL followed by a pound symbol.</a>

Code Demo:

Mousing over this URL will display the current URL followed by a pound symbol.

The Old Techniques Using window.status

There used to be a more eloquent way to achieve this by using window.status, but most major web browsers have long disabled the ability to hide the URL in the status bar this way due to security problems.

Web developers could set the status bar text to anything they wanted at any time, but this was problematic because people could be misled into thinking that they were clicking on a link to one site but were being taken to a different site.

Filed Under: HTML

Read More From Actual Wizard

  • Understanding the Different Parts of an Email Address
    An email address has four parts; the recipient name, the @ symbol, the domain name, and the top-level domain. …
  • How to Get the Last Element of an Array in JavaScript
    There are a number of different ways to get the last element of an array in JavaScript. Below we will explore …
  • How to use document.write() in JavaScript
    How to use document.write() in JavaScript The document.write() function is commonly used when testing simple …
  • How to Open a New Tab with JavaScript
    Opening a new browser window in a new tab can be done easily in JavaScript. Modern web browsers provide a …

Primary Sidebar

More posts from this section

  • PX to EM Converter – Online CSS Font Size Tool
  • How to Hide the URL Address in the Browser Status Bar
  • Heart Symbol HTML Code with Examples
  • HTML Trademark Symbol Code Example
  • Prevent a Phone Number from Wrapping to a New Line in CSS HTML
  • Html Tutorial Hello World Example with Code
  • Force a File to Download Instead of Opening it in a Browser with HTML

Copyright © 2025 ActualWizard.com

  • About
  • Terms of Service
  • Privacy Policy
  • Cookie Policy