<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src='http://code.jquery.com/jquery-1.9.1.js'></script>
<script type='text/javascript'>
$(window).load(function(){
$(document).ready(function(){
console.log($(window).width());
if ($(window).width() > 1000) {
console.log("detected larger than 1000px");
}
});
});
</script>
</head>
<body>
</body>
</html>