Solved

how to make location bar invisible and uneditable in popup windows

Posted on 2008-10-05
6
796 Views
Last Modified: 2013-12-07
How to make location/address bar invisible and uneditable in popup windows? In Safari, user can use command+L to make location bar editable and Ctrl+L in Firefox and IE browsers. Is there a browser compatible javascript to disallow user to use "command"+L or Ctrl+L?
0
Comment
Question by:techchandra
6 Comments
 
LVL 3

Expert Comment

by:fermie
Comment Utility
hi there, please try this
function popUp(URL) {

day = new Date();

id = day.getTime();

eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=300,height=500,left = 490,top = 262');");

}

Open in new window

0
 
LVL 44

Accepted Solution

by:
scrathcyboy earned 250 total points
Comment Utility
When you make a popup window from a main page, Mozilla, firefox and IE DELIBERATELY put the URL of the page into the address bar as a protection for the user, so if the popup is malicious or a problem, the user can track it down.  This has been done for years as a protection against nasty websites with popups.

The long and the short of it is there is ABSOLUTELY NO WAY to get rid of the title of a popup in these browsers (i.e. the full web address of the popup).  You can try until you are blue in the face, it is HARD coded into the browser as a means of protecting the user from abusive popups.
0
 

Author Comment

by:techchandra
Comment Utility
hi scrathcyboy,

pls let me know how to disable the use of Ctrl+L on the popup window using browser compatible javascript. This way we can restrict user to explicitly edit the address.
0
 
LVL 27

Assisted Solution

by:Lukasz Chmielewski
Lukasz Chmielewski earned 250 total points
Comment Utility
0
 
LVL 75

Expert Comment

by:Michel Plungjan
Comment Utility
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I recently found myself in a Corporate Situation where the client had requested blocking access to any and all websites except his own Domain? Easy? I am sure this would be your answer but their requirement was, this has to be done without using…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now