Status bar showing up with Windown XP SP2

Posted on 2005-04-20
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

    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.

    LVL 1

    Expert Comment


    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


    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 I am just wondering why this would suppress the status bar?
    LVL 4

    Accepted Solution

    .. 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

    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=' '">

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Course: HTML5 Mobile App Development with PhoneGap

    PhoneGap can help you leverage your already existing HTML5, JavaScript, and CSS skills in order to create and deploy cross-platform mobile apps.This program comprehensively covers HTML5 mobile app development from top to bottom.

    Introduction Many web sites contain image galleries; a common design for these galleries includes a page with a collection of thumbnail images.  You can click on each of the thumbnail images to see the larger version of the image.  This is easily i…
    Read about why website design really matters in today's demanding market.
    This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
    Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

    759 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

    14 Experts available now in Live!

    Get 1:1 Help Now