Click to See Complete Forum and Search --> : internal width and height


David Harrison
06-20-2003, 04:04 PM
How would I detect the AVAILABLE INTERNAL width and height of an open browser window?

Khalid Ali
06-20-2003, 04:50 PM
window.innerHeight and width for NS browsers

and

document.body.clientHeight and clientWidth for IE browsers

David Harrison
06-20-2003, 04:56 PM
Thanks, I'll probably only be using it for IE at the moment, but just for future reference which one of those works for other browsers (ie: Opera, Mozilla...).

brendandonhue
06-20-2003, 05:02 PM
innerHeight should work for Mozilla.
I doubt that these are standards-so I don't know if you will get anything in other browsers. I could be wrong though, I didn't look them up.

David Harrison
06-20-2003, 05:05 PM
OK, thanks Brendon.