function SHW() {
   if (document.body && (document.body.clientWidth !=0)) {
      width=document.body.clientWidth;
      height=document.body.clientHeight;
   }
   if (document.documentElement && (document.documentElement.clientWidth!=0) && (document.body.clientWidth + 20 >= document.documentElement.clientWidth)) {
      width=document.documentElement.clientWidth;   
      height=document.documentElement.clientHeight;   
   }   
   return [width,height];
}
// Customised function for inner window dimension
Customised function for inner window dimension
Customised function for inner window dimension
function SHW() {
   if (document.body && (document.body.clientWidth !=0)) {
      width=document.body.clientWidth;
      height=document.body.clientHeight;
   }
   if (document.documentElement && (document.documentElement.clientWidth!=0) && (document.body.clientWidth + 20 >= document.documentElement.clientWidth)) {
      width=document.documentElement.clientWidth;   
      height=document.documentElement.clientHeight;   
   }   
   return [width,height];
}
function SHW ( ) { if ( document . body && ( document . body . clientWidth != 0 ) ) { width = document . body . clientWidth ; height = document . body . clientHeight ; } if ( document . documentElement && ( document . documentElement . clientWidth != 0 ) && ( document . body . clientWidth + 20 >= document . documentElement . clientWidth ) ) { width = document . documentElement . clientWidth ; height = document . documentElement . clientHeight ; } return [ width , height ] ; }
Customised function for inner window dimension
Customised function for inner window dimension