Solved

Window.open location problem

Posted on 2010-08-18
2
590 Views
Last Modified: 2013-12-08
Hi there.  I'm using the following javascript to open a window.  The issue is that on SOME client machines, the window opens displaying the URL bar (Location) even though that option is set to "no".  I'm not certain if this is a browser setting or something wrong with my code.  It works on most PCs.  Today's offender was running windows XP with IE8.  I tried vewing both in and out of compatility view and there were no changes.  

Ordinarily I wouldn't care so much, but it's nice to hide the URL.  In addition we are using our application with some screen-scraping software and this extra bar on SOME of the machines is throwing things off.  

HELP! :)




window.open('sl/index.htm', '_blank', 'width=1016,height=660,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no')
        window.open('', '_parent', '');

Open in new window

0
Comment
Question by:Jeremy Morel
2 Comments
 
LVL 3

Accepted Solution

by:
andrewlorien earned 250 total points
ID: 33471303
the location setting isn't all that reliable.

in FireFox, the user can decide whether to allow hiding of the location bar, and FF3 shows the location bar by default.
in IE7 and greater, the location setting actually controls whether the toolbar is hidden, not the location bar (which is always displayed)
and of course, all modern browsers have popup warnings, so your users will have to say ok to your popup window before they see it anyway.

0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
An article on effective troubleshooting
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.
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

856 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