Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I detect status bar visibility in IE?

Status
Not open for further replies.

Thalhuber

Programmer
Jan 2, 2003
8
US
IE with Windows XP SP2 unconditionally forces Status Bar to be displayed on all windows opened by window.open(). The "status" property is ignored (setting it to '0' or 'no' has no effect).

I need to know if the Status Bar is visible, because if it is, I need to add an addtional 20 or so pixels to the window height when I resize it.

NN has the 'statusbar.visible' property. It also has other window properties like 'outerHeight' and 'innerHeight' that I can use to calculate the difference between physical browser window height and client area height.

Any ideas?

 
Thalhuber said:
IE with Windows XP SP2 unconditionally forces Status Bar to be displayed on all windows opened by window.open().

No it does not. Take the following example:

Code:
<script type="text/javascript">
window.open('', '', 'scrollbars,resizable');
</script>

This opens a window without a status bar for me, and I'm running XP/SP2.

What is the code you are using to open the new window?

Dan
 
Thanks for the prompt reply ...

I researched this further ... the Status Bar gets automatically (unconditionally) added to the opened window when you access a web site on a different server - unless you explicitly add that web server to the list of "Trusted" sites in your browser.

I've seen numerous questions/complaints about this change on several different forums. In researching this, I did find information about this published before SP2 was released. It is related to the new pop-up blocking features, but the settings for pop-up blocking do not affect the Status Bar.

I can adjust to this if I can just figure out (using JavsScript) if the Status Bar is visible (by increasing the height of my window).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top