Solved

how to make location bar invisible and uneditable in popup windows

Posted on 2008-10-05
6
917 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 3

Expert Comment

by:fermie
ID: 22646527
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
ID: 22647175
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
ID: 22647240
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
ID: 33352117
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 35762986
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Several part series to implement Internet Explorer 11 Enterprise Mode
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…
Suggested Courses

622 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