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. Show 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
You can use javascript for that , for example
You can read more about here : Explanation Or use a PHP Routing system, theres a lot of information about it in google
answered Aug 19, 2015 at 10:30
Carlos DelgadoCarlos Delgado 2,8504 gold badges22 silver badges48 bronze badges Use this snippets in your .htaccess file Now you can use this in Url abc.com/xyz and it redirect you to abc.com/xyz.php
answered Jan 2, 2017 at 2:55
Answers
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. 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. 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. Code Demo: Mousing over this URL will display the current URL followed by a pound symbol. 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.
|