How do i hide the url in the address bar in html?

I want to keep same url for all the pages of my site.

ex: if my site is www.abc.com & xyz.html is a page.

I want to display www.abc.com or www.abc.com/xyz instead of www.abc.com/xyz.htm

Please help me to do this.

Thank you in advance.

asked Aug 19, 2015 at 10:18

Mousing over this URL will display "void[0]" in the browser's status bar.

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.

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

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.

How can I hide the URL in the address bar?

To get started enter “about:flags” into the Address Bar and hit Enter. Scroll down until you see the listing for Compact Navigation. Enable it and let the browser restart to gain access to the feature. Once the browser has restarted right click on one of the tabs and select Hide the toolbar from the Context Menu.

How do I hide URL address in HTML?

By changing the display feature to "none", you will remove the link from the page layout. This may cause other elements of your page to move if they define their position in reference to your link. Changing your visibility to "hidden" will hide the link without influencing the page layout.

How can I hide the actual URL in the status bar of all browsers?

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. Code Demo: Mousing over this URL will display “void[0]” in the browser's status bar.

Bài Viết Liên Quan

Toplist mới

Bài mới nhất

Chủ Đề