I am trying to detect not only the width of the window/screen but the height as well. I am using the below jquery to get the width but would like it to factor in the height as well before proceeding with the redirect.
I have a fullscreen image (standard 16:9) that scales proportionally unless the users height is larger then the width. Which is why I would like to detect both the height and width
<script>
if($(window).width() < 800){
window.location = "http://www.examplesite.com/something"
}
</script>