Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

window viewport width

const vw = Math.max(document.documentElement.clientWidth || 0, window.innerWidth || 0)
const vh = Math.max(document.documentElement.clientHeight || 0, window.innerHeight || 0)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #window #viewport #width
ADD COMMENT
Topic
Name
2+4 =