How to use javascript conditionally like CSS3 media queries, orientation?
For Example I can write css for specific
@media only screen and (width : 10
The simplest way I found is to get the width of our page; then to conditionally use it.
var x = document.documentElement.clientWidth; if (x < 992) document.body.style.backgroundColor = "yellow";