Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript get width

getComputedStyle(element).width; //returns value in px like "727.7px"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #width
ADD COMMENT
Topic
Name
4+3 =