+ 2
document.body.clientHeight and document.body.clientWidth vs window.innerHeight and window.innerWidth
They both return the height and width of the document and can be used to set the canvas to fit the whole screen. Is there a difference between the two and Is there a reason for choosing to use one over the other?
1 Answer
+ 7
Maybe this can help :
http://eligeske.com/jquery/what-is-the-difference-between-document-and-window-objects-2/