In Internet Explorer is their a way of determining if the sidebar is Active??

  • Thread starter Thread starter CES
  • Start date Start date
C

CES

I'm looking for a JavaScript/.net replacement for Netscape's
window.outerWidth that will work in IE and was wondering is their a way of
determining if the search/history/favorites/etc. sidebar is open ???

Any other suggestion on how to find the total with of the IE window would be
appreciated.
Thanks
CES
 
Use can use automation to this the window size, here's a sample. You can
lookup the InternetApplication object for additional info

<script>
function window.onload()
{
var shApp = new ActiveXObject("Shell.Application");
var shWins = shApp.Windows();

var ieApp = new ActiveXObject("InternetExplorer.Application");
for (i = 0; i < shWins.Count; i++)
{
ieApp = shWins.Item(i);
if (document.title == ieApp.document.title)
{
alert("Window Size: width=" + ieApp.width + ", height=" + ieApp.Height);
}
}
}
</script>
 
Back
Top