Click to See Complete Forum and Search --> : getting thw window widh and height


pelegk1
10-28-2003, 08:09 AM
how can i get the width/height of the current
window that i open?
thanks in advance
peleg

gil davis
10-28-2003, 11:50 AM
In Netscape, you can use window.width and window.height.

Microsoft does not expose those values. You can set them in the window.open() or using resizeTo(), but you cannot read them.

The best you can do is find out how big the document.body is and where the screenTop and screenLeft is.

How to measure other things can be found here:

http://msdn.microsoft.com/workshop/Author/om/measuring.asp

pelegk1
10-29-2003, 02:00 AM
0X:)
peleg

ccoder
10-29-2003, 08:50 AM
clientHeight and clientWidth are available in IE beginning with Ver. 4. I have used them successfully in IE 5.5.

Quoting from Danny Goodman's JavaScript Bible:
"For the document.body object, the clientHeight and clientWidth properties return the inside height and width of the window or frame (plus or minus a couple of pixels). ".

pelegk1
10-30-2003, 01:22 AM
why when i type in intranetdev :
document.body.
i dont gt the property clientHeight or clientWidth ?
i am on iE ver.5.5

ccoder
10-30-2003, 08:34 AM
I had to do a search for intranetdev to understand your question.

I think you are saying that you did a search for the properties at http://www.intranetdev.com/ and didn't find anything. Try using a search engine with a wider scope. Using Google, my search for clientHeight returned 25400 hits including:

http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/properties/clientheight.asp

http://lists.evolt.org/archive/Week-of-Mon-20020729/119353.html

http://www.akemi.com.au/documentation/SpyLibrary/properties/ClientHeight.html

pelegk1
11-02-2003, 12:24 AM
that there a lot of methods to use
but alot of the properties are not know at all and
when u type a method then press the dot (.)
u dont get always the full properites list for the method!

ccoder
11-03-2003, 11:01 AM
Apparently I guessed wrong as to what you are asking. I don't know what you are referring to by intranetdev.

I do know that you are referring to auto code completion similar to Microsoft's IntelliSense feature in their Visual Studio products. Could you possibly be asking about Visual Interdev?

pelegk1
11-08-2003, 07:33 AM
yes i meant : Visual Interdev?