Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

get the size of the screen javascript

window.screen.height;
window.screen.width;
Comment

js know size of screen displayed

var win = window,
    doc = document,
    docElem = doc.documentElement,
    body = doc.getElementsByTagName('body')[0],
    x = win.innerWidth || docElem.clientWidth || body.clientWidth,
    y = win.innerHeight|| docElem.clientHeight|| body.clientHeight;
alert(x + ' × ' + y);
Comment

PREVIOUS NEXT
Code Example
Javascript :: if text exists in element using javascript 
Javascript :: hover material ui styles 
Javascript :: ajax select2 
Javascript :: node js post method 
Javascript :: nodejs routes 
Javascript :: javascript sort array of objects 
Javascript :: node filesystem change directory of a file 
Javascript :: jQuery onclick not firing on dynamically inserted HTML elements 
Javascript :: javascript edit form value 
Javascript :: npm got 
Javascript :: javascript ready state 
Javascript :: how make date object in jquery from custom date 
Javascript :: how to remove more than one attribute using jquery 
Javascript :: how to use the replace method in javascript 
Javascript :: how to use axios get 
Javascript :: mapgetters with parameter 
Javascript :: str replace javascript all 
Javascript :: get option value jquery 
Javascript :: how to make fake binary 
Javascript :: cart page url in shopify 
Javascript :: react webpack.config.js 
Javascript :: js json_encode pretty 
Javascript :: react native float upto 2 digits 
Javascript :: enzyme-adapter-react-17 
Javascript :: javascript return object property from array 
Javascript :: get only numbers from string 
Javascript :: what is vanilla javascript 
Javascript :: uncheck checkbox when another is checked javascript 
Javascript :: how to import svg in react 
Javascript :: materialize open modal on load 
ADD CONTENT
Topic
Content
Source link
Name
5+2 =