[thelist] height of document (body) ?

kris krois kkrois at web.de
Mon Sep 29 02:11:14 CDT 2003


>At 07:50 28/09/2003, you wrote
>>Hi,
>>how can i get the height of a page with javaScript? Naturally for 
>>all browsers (not necessarily NN4).
>>Thanx,
>>k r i s
>
>Do you mean get the height of a browser window?

no the document, respectively the body.
k r i s



>
>variables relating to these properties
>
>http://www.dansteinman.com/dynduo/en/widthheight.html
>
>does this help?
>
>I once used a wee script to swap between 2 directories depending on 
>screen size
>
><script>
>
>//tmtC_screenRedirect
>
>if (window.screen){
>
>var w=screen.width
>
>if (w<=800) {
>
>self.location.replace('800/index.htm')}
>
>else {
>
>self.location.replace('1024/index.htm')}
>
>}
>
></script>
>
>so I guess you can grab others?
>
>John
>
>listowner: java-script-world at yahoogroups.com (373 members)
>http://groups.yahoo.com/group/java-script-world/
>
>
>
>
>--
>* * Please support the community that supports you.  * *
>http://evolt.org/help_support_evolt/
>
>For unsubscribe and other options, including the Tip Harvester and 
>archives of thelist go to: http://lists.evolt.org Workers of the 
>Web, evolt !


-- 

/
\ kris krois
/ gestaltung
\
/ kris at phlux.org
\ phon +49 - (0)89 - 90 93 63-55
/ cell +49 - (0)174 - 746 37 39
\


More information about the thelist mailing list