Grazie per il link, lì utilizza anche document.body.clientHeigth/Width ed effettivamente così ho risolto.
Grazie ancora, ciao!