Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

window viewport size javascript

// viewport dimention 
const vw = Math.max(document.documentElement.clientWidth || 0, window.innerWidth || 0);
const vh = Math.max(document.documentElement.clientHeight || 0, window.innerHeight || 0);
 
PREVIOUS NEXT
Tagged: #window #viewport #size #javascript
ADD COMMENT
Topic
Name
2+8 =