Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can we disable the address bar of browser so that no one can select the url from the address bar
Posted

I don't think you can hide the address bar on a user's current window but you can create a pop up that has the address bar hidden.

var popup = window.open("http://someurl", "myPopup", 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=120,height=120')


alternatively check these links -

Hiding Address Bar on Page Load Using JavaScript
Hiding Address Bar on Page Load Using JavaScript
 
Share this answer
 
v2
you can write server.transfer("navigation link or page name")it ll not let the address or page name show in url bar.
 
Share this answer
 
You'll not be able to disable the address bar. But you can open your page in a popup, and specifty whether the window should display the toolbars, statusbar, addressbar etc.
Check MSDN : Open Method(Windows)[^].


--Amit
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900