Window.open doesn't hide the location bar in a specific instance

I am using the code snippet below to launch a new window in my .NET web application.  It works fine for me in my dev environment when accessing the site from my desktop or from the server itself.  Meaning it hides the status/toolbar/location as it is supposed to.  However when I deploy to my production server, the popup now no longer hides the location and status bars.  It does this whether I am on the server or accessing it from my desktop so I suspect something is different on the server.  Both machines are running windows server 2003 /w IIS 6.0.  

I initially used the "no" flag rather than "0" but changed it to "0" as a test.  
onclick="window.open('Timers.aspx',null,'height=200,width=606,status=0,toolbar=0,menubar=0,location=0');"

Open in new window

LVL 1
rerardAsked:
Who is Participating?
 
Michel PlungjanConnect With a Mentor IT ExpertCommented:
No. You most likely have your dev server in your list of trusted sites

http://msdn.microsoft.com/en-us/library/ms536651%28VS.85%29.aspx

"The behavior described in this comment is by-design. In Internet Explorer 7 and later, you cannot remove the address bar in Internet Zone windows, for security (anti-spoofing) reasons. As described in the MSDN article above, in IE7 and later, location=no simply hides the back/forward/stop navigation buttons, and makes the address bar read-only. (The reason you can hide the address bar when the file is saved locally is that the file is opened in the Local Machine zone rather than the Internet Zone.)
-EricLaw, Program Manager, Internet Explorer Security."

0
 
rerardAuthor Commented:
BTW I am using IE 8 and the problem occurs in both compatiblity mode and non-compatibility mode, while on my dev server it works fine in both modes.
0
 
Saqib KhanSenior DeveloperCommented:
I believe it is a security setting in IE 7.0+ :), you no longer can hide information.
0
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

 
Saqib KhanSenior DeveloperCommented:
0
 
Kumaraswamy RCommented:
Hi

Bellow ur give u some information
http://www.quirksmode.org/js/popup.html
0
 
rerardAuthor Commented:
If it is a browser issue that doesn't explain why it will work when the site is hosted on my dev server.  So if I have two instances of my app (dev/prod)... and I access them both from the same desktop, the toolbars are hidden when I access the site on my dev server but when I access the one on my prod server they are not hidden.  I figured it was an IIS setting or something.
0
 
rerardAuthor Commented:
I had both sites in my trusted sites, I tried removing them both and this has not impacted the behavior.

In addition, I can duplicate the exact issue when I am running FROM the prod server.  So if I run IE on the prod server, and hit my dev server (which is not in trusted sites), then it works properly.  Again, the prod version doesn't work properly even on the prod server.
0
 
rerardAuthor Commented:
I did some further testing and found out mplungja was right.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.