GB_001 Posted April 14, 2011 Share Posted April 14, 2011 Hello, how would I be able to calculate screen.availheight without the inclusion of the address bar/toolbar height? Because right now screen.availheight is giving me my full vertical screen res (Address bars and all). Thankyou, -GB. Note: (I can't use $(window).height() because I need the maximum available height of the browser window). Link to comment https://forums.phpfreaks.com/topic/233686-calculate-screenavailheight-without-address-bar/ Share on other sites More sharing options...
nogray Posted April 14, 2011 Share Posted April 14, 2011 try this var h = Math.max(document.body.clientHeight, document.documentElement.clientHeight); alert(h); Link to comment https://forums.phpfreaks.com/topic/233686-calculate-screenavailheight-without-address-bar/#findComment-1201451 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.