Get page size

On August 6, 2009, in Javascript, PHP, Tips, Tricks, by admin

function get_page_size() {

var de = document.documentElement;
var w = window.innerWidth || self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth;
var h = window.innerHeight || self.innerHeight || (de&&de.clientHeight) || document.body.clientHeight;
arrayPageSize = new Array(w,h);
return arrayPageSize;

}

One Response to Get page size

  1. Anonymous says:

    You completed several good points there. Used to do looking on the issue and found the majority of people is going together with together with your blog.

Leave a Reply