[thelist] height of document (body) ?

John C Bullas jcbullas at nildram.co.uk
Sun Sep 28 02:16:53 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?

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/



   



More information about the thelist mailing list