Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionfunction getWindowHeight() { var h = 0; if (typeof(window.innerHeight) == 'number') { h = window.innerHeight; } else if (document.documentElement && document.documentElement.clientHeight) { h = document.documentElement.clientHeight; } else if (document.body && document.body.offsetHeight) { h = document.body.offsetHeight; } return h; } function getWindowWidth() { var w = 0; if (typeof(window.innerWidth) == 'number') { w = window.innerWidth; } else if (document.documentElement && document.documentElement.clientWidth) { w = document.documentElement.clientWidth; } else if (document.body && document.body.offsetWidth) { w = document.body.offsetWidth; } return w; } var largeur = getWindowHeight(); var hauteur = getWindowWidth();
<form>