Status bar showing up with Windown XP SP2

Posted on 2005-04-20
Medium Priority
Last Modified: 2009-07-29
Here is my situation.

My application launches Modal windows with the following command.

showModalDialog ( URL,  URL, "dialogHeight:45px;dialogWidth:310px;status:no;help:no;scroll:no") ;

Before I was on SP2, the modal window launches fine, without the status bar. However, once I installed SP2, the status bar appears eventhough I launched the window with the "status:no" command?

Can anyone give some insights on how to eliminate the status bar with SP2?
Question by:gvijay1
LVL 29

Expert Comment

ID: 13829621
I believe if you read the list of changes in SP2 you'll see that was added on purpose and it can't be disabled.

It provides the client with more control over pop-up windows which have been abused by developers and spammers, which prompted the change.


Expert Comment

ID: 13833370

This is true.

I am however able to force open windows using this function i wrote and use quite successfully.

 s= "no" ;
 var popUpWindow = null;
 var undefinedVariable;
 var undefType = typeof undefinedVariable;

 function pop(url,w,h,s){
  if (popUpWindow!=null) {
            var windowHasBeenClosed = (typeof popUpWindow.location == undefType ) ;
       if (!windowHasBeenClosed ){ popUpWindow.close();
       settings="resizable=yes,toolbar=no,scrollbars=" + s + ", width=" + w + ",height=" + h + ",status=no"; popUpWindow = open(url,"g", settings);
 if ( navigator.appVersion.indexOf("MSIE")==-1 ) {

This particular script also checks for an already open window... and closes a previously opened one.

Author Comment

ID: 13843321

I am a little confused. The javascript you provided above can actually hide the status bar in XP SP2?  Besides, how is this different from a regular window.open()? I am just wondering why this would suppress the status bar?

Accepted Solution

ARCglide earned 400 total points
ID: 13844915
.. if you add the site (URL) to the IE Trusted Zone, then the STATUS will behave as required.

This has a good summary of all the XP SP2 changes for developers:

LVL 10

Expert Comment

ID: 13849330
If you can't get ride of the status bar, why not set the message in the status bar to a space which willl show an empty statusbar?

you can do it with the javascript command "window.status"

you can use it in the body
<body "onload="javascript: window.status=' '">

and you can use it in OnMouseOver/OnMouseOut/OnmouseDown events

<a href="<yoururl>" onmouseover="javascript: window.status=' '">

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
CTAs encourage people to do something specific to show interest in your company, product or service. Keep reading to learn why CTAs should always be thought of as extremely important, albeit small, sections of websites.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses
Course of the Month13 days, 21 hours left to enroll

807 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