I imagine this is an IE / Windows only question but I was wondering if anyone knows if it's possible to detect if the Windows Taskbar (the bar at the bottom of the screen that holds the 'start' menu and the clock) using JavaScript.
I'm checking through the Microsoft DOM object at the moment but haven' seen anything about it so far.
Nope. Sorry, but that is not possible. JS can only affect the browser window, not the OS. In order to affect the task bar, you need to write a program in C++, Delphi, etc., and have the user install it.
Well, you might be able to use JScript (Microsoft's proprietary version of JavaScript with File System Access) or VBScript, but the user would need Internet Explorer, Windows, and it could not be a webpage. It'd have to be an HTA (Microsoft Hypertext Application).
Next question, I suppose, would be what do you mean by "detecting the taskbar"? That doesn't seem to make any sense to me. What for?
Well.. if I know wether the task-bar is visible or hidden then I can adjust the height of the browser to suit. And I know it's only an IE/Win thing but that doesn't matter because the site is only compatible with IE/Win.
The screen.availHeight will only take the Taskbar into account when the Taskbar is set to "Always on top"... otherwise IE just completely ignores it, which is stupid.