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\").
if you don't use jQuery try this:
document.getElementById('someDiv').clientHeight; document.getElementById('someDiv').offsetHeight; document.getElementById('someDiv').scrollHeight;
Depend what you need.