Knowledge Base

PRB: Cannot Remove or Change Status Bar on HTML Dialog Box

Article ID: 191186

Article Last Modified on 5/11/2006


APPLIES TO


This article was previously published under Q191186

SYMPTOMS

When you use window.showModalDialog to show an HTML dialog box, you cannot programmatically remove the status bar from the window.

Also, window.status appears to have no effect.

CAUSE

In Internet Explorer 4.x, it is not possible to remove the status bar for security reasons. This is to prevent Web pages from spoofing password dialog boxes that may retrieve personal user information.

STATUS

This behavior is by design. The designed behavior has changed in Microsoft Internet Explorer 5 or later to allow removal of the status bar.

MORE INFORMATION

One alternative approach is to use window.open, which can create windows without the status bar:
<SCRIPT LANGUAGE="JavaScript">
  function openANewWindow()
  {
     newwindow = window.open("URL", "WindowName", "status=no");
  }
</SCRIPT>
				
However, this window will not be modal, and the new window will need to access the creator window through window.opener to pass values back and forth.

REFERENCES

For more information about developing Web-based solutions for Microsoft Internet Explorer, visit the following Microsoft Web sites:

Keywords: kbfix kbie500fix kbprb kbscript KB191186