Microsoft KB Archive/305075

= BUG: Cannot Change Status Bar Text in Dialog Box When You Use ShowModalDialog or ShowModelessDialog Function =

Article ID: 305075

Article Last Modified on 5/12/2003

-

APPLIES TO


 * Microsoft Internet Explorer 4.0 128-Bit Edition
 * Microsoft Internet Explorer 4.01 Service Pack 2
 * Microsoft Internet Explorer 5.0
 * Microsoft Internet Explorer 5.01
 * Microsoft Internet Explorer 5.5

-



This article was previously published under Q305075



SYMPTOMS
When you use the showModalDialog or showModelessDialog function to open an HTML dialog box, you cannot change the text of the status bar in the dialog box as expected.



RESOLUTION
If you need to use the showModalDialog or showModelessDialog function, there is no known workaround for this issue. However, you can use the window.open property to change the status bar text.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.



Steps to Reproduce the Problem
  Create page1.htm based on the following code:  function show {       // either way won't allow you to change status //window.showModalDialog(&quot;page2.htm&quot;,&quot;&quot;,&quot;status=yes&quot;); window.showModelessDialog(&quot;page2.htm&quot;,&quot;&quot;,&quot;status=yes&quot;);

//using window.open, you can change the status //window.open(&quot;page2.htm&quot;,&quot;&quot;,&quot;status=yes&quot;); }    Create page2.htm based on the following code:  function changeStatus { window.status = &quot;This is a new message on status line&quot;; div1.innerText=&quot;Status should have changed&quot;; }                    Navigate to page1.htm in Internet Explorer. Click Open Dialog.

A dialog box that contains page2.htm is displayed.</li> Click Change Status Line.

The window status bar remains the same as the URL for the page.</li></ol>

<div class="references_section">