window.screen.availHeight(Width)

window.screen.availHeight(Width)
0

#1

I would like to know how I can make my site responsive for specific devices using:

window.screen.availHeight
window.screen.availWidth

So I want to make my website responsive with JS.

I think it’s called “Browser detection”.


#2

you may use vh or vw measurment units. like: height: 100vh; that means 100% of full viewport height. similar for width using vw.

I think you over complicate trying to use js instead of css.


#3

bump… anyone?