JavaScript
Which docu ...
Site Language: English
Українська
English
Русский
Programming Tests
Login
Sign Up
Programming Tests
Theory
Snippets
Papers
Landing
Android
Prices
FAQ
Cosmo Story
Terms and Conditions
Privacy Policy
Cookies Policy
Send Feedback
Which document object property will you use to get value of the viewable width of an element in pixels?
document.body.clientWidth
body.getClientWidth
window.clientWidth
window.getclientWidth
None of the above
Explanation
The Element.clientWidth property is the inner width of an element in pixels. It includes padding but not the vertical scrollbar (if present, if rendered), border or margin.
Like
Login in
to like
Comment
Login in
to comment
Share
Tweet
J
avaScript
Quiz
Login to learn JavaScript
or
Read more about
JavaScript Quizzes
Follow CodeGalaxy
Mobile Beta
Send Feedback
Sign Up Now
or
Subscribe for future quizzes
Login in to like
Login in to comment