I\'ve been trying for a while now to \'get\' the height and width of a div on my webpage. I\'ve tried many things, some are:
document.getElementById(\"header\").
example -
var divheight = document.getElementById('divId').offsetHeight;
refer this -
http://www.w3schools.com/jsref/dom_obj_all.asp