Answered by:
Disable Address Bar of major browsers (Chrome, IE and firefox)

Question
-
User-1079390807 posted
Hi ,
On a button click I open new web page using below but still I see the address bar; anyone please help to resolve the issue.
<input id="Button1" type="button" value="button" onclick="window.open('WebForm1.aspx','PoP_Up','directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=1024,height=768');" />
If there is any other of way doing please let me knowMonday, August 19, 2013 4:19 PM
Answers
-
User-760709272 posted
If you're trying to hide the url or stop them changing it there isn't much point as Ctrl-N will restore the browser features. The web isn't intended to be restircted at the client end and browsers have features that stop it.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, August 19, 2013 4:40 PM -
User223678428 posted
Most people have gone to using Modal Popups. You can use them with iFrame or implementing the textbox directly on the page.
jQuery Dialog http://jqueryui.com/dialog/
ASP.NET AJAX Modal Popup Extender http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/ModalPopup/ModalPopup.aspx
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, August 19, 2013 5:11 PM -
User-1635195291 posted
Hi Reifier,
No, you cannot remove or hide address bar due to security reason. But you can open the web browser as pop up by disabling the address bar. The main disadvantage is if pop up is blocked then your page will not open.
<A HREF="#" onMouseOver="ShowPopUp('\popup.aspx')">Image Name</A>
JavaScript to open pop up
<script language="javascript"> function ShowPopUp(popUpPage) { window.open(popUpPage, 'window','toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=200,height=400'); } </script>
Similarly you can do for menubar, addressbar, use addressbar=0 or 1 as per your need.
Hope this helps.
Thanks,
Jatin
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, August 19, 2013 5:24 PM
All replies
-
User-760709272 posted
If you're trying to hide the url or stop them changing it there isn't much point as Ctrl-N will restore the browser features. The web isn't intended to be restircted at the client end and browsers have features that stop it.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, August 19, 2013 4:40 PM -
User223678428 posted
Most people have gone to using Modal Popups. You can use them with iFrame or implementing the textbox directly on the page.
jQuery Dialog http://jqueryui.com/dialog/
ASP.NET AJAX Modal Popup Extender http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/ModalPopup/ModalPopup.aspx
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, August 19, 2013 5:11 PM -
User2103319870 posted
Hi,
Please refer the below links
http://saher42.wordpress.com/2006/08/10/hiding-the-address-bar-on-pageload-using-javascript/
http://vstanwar.blogspot.com/p/hide-address-bar-from-child-window.html
Monday, August 19, 2013 5:14 PM -
User223678428 posted
I would not do what A2H says as it may look good on your machine, but everyone else will see the nav bar if they want to. The general practice is your want people to see the address bar to keep phishing attacks down. If the user cannot see they are on your site, then that is not a good thing. People like seeing the green bar (for secure) and the little lock (again, for secure).
Monday, August 19, 2013 5:20 PM -
User-1635195291 posted
Hi Reifier,
No, you cannot remove or hide address bar due to security reason. But you can open the web browser as pop up by disabling the address bar. The main disadvantage is if pop up is blocked then your page will not open.
<A HREF="#" onMouseOver="ShowPopUp('\popup.aspx')">Image Name</A>
JavaScript to open pop up
<script language="javascript"> function ShowPopUp(popUpPage) { window.open(popUpPage, 'window','toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=200,height=400'); } </script>
Similarly you can do for menubar, addressbar, use addressbar=0 or 1 as per your need.
Hope this helps.
Thanks,
Jatin
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, August 19, 2013 5:24 PM