var height = document.body.clientHeight;
var width = document.body.clientWidth;
Check: this article for better explanation.
More Related Contents:
- How to hide css and js version details from weppalyzer in PHP
- Absolute Beginner, Visual Studio Terminal
- How to scroll an HTML page to a given anchor
- How to reset a form using jQuery with .reset() method
- Show datalist labels but submit the actual value
- Programmatically open new pages on Tabs
- Pass a string parameter in an onclick function
- How to find the array index with a value?
- Using JQuery hover with HTML image map
- is it evil to use eval to convert a string to a function? [closed]
- Javascript when to use prototypes
- How do I pass JSF managed bean properties to a JavaScript function?
- Passing regex modifier options to RegExp object
- How do I auto-submit an upload form when a file is selected?
- jQuery – Can threads/asynchronous be done?
- Bootstrap 4 multiselect dropdown
- React.createClass vs. ES6 arrow function
- smooth auto scroll by using javascript
- JavaScript: How to iterate object with two the same keys (and get two values)
- Why does ‘instanceof’ in TypeScript give me the error “‘Foo’ only refers to a type, but is being used as a value here.”?
- Parse the JavaScript returned from BeautifulSoup
- How to do page numbering in header/footer htmls with wkhtmltopdf?
- How browser executes Javascript and renders asynchronously
- Only numbers. Input number in React
- Split a string, at every nth position, with JavaScript? [duplicate]
- How do you completely remove Ionic and Cordova installation from mac?
- How to hide optgroup/option elements?
- What is the new proper way to use a child selector with a context node in jQuery?
- Determine if a CSS class exists with Javascript
- Determine distance from the top of a ‘div’ to top of the window with JavaScript