I am trying to do a write a few scripts relating to the sizing of a browser window.
1) How do I get the width and height of an IE window ? I tried using window.innerwidth but apparently it only works in netscape.
2) I need my window to resize according to a ratio ie: If the user tries to make the window shorter, it also gets narrower (higher gets wider etc.)
screen.width seems to get the width of the screen so why on earth could they not just include a window.width property.
This has been causing me to lose hair for the past week (and I am only in my twenties) so if anyone can help me I would be very grateful.
1) How do I get the width and height of an IE window ? I tried using window.innerwidth but apparently it only works in netscape.
2) I need my window to resize according to a ratio ie: If the user tries to make the window shorter, it also gets narrower (higher gets wider etc.)
screen.width seems to get the width of the screen so why on earth could they not just include a window.width property.
This has been causing me to lose hair for the past week (and I am only in my twenties) so if anyone can help me I would be very grateful.