Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html lang="en">
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-compat/3.0.0-alpha1/jquery.min.js"></script>
</head>
<body>
Now, you resize the window.
<script>
$(document).ready(function () {
$(window).on('resize', function(){
var width = $(window).width();
if (width <= 820) { alert("window is smaller!"); }
if (width >= 1280) { alert("window is bigger!"); }
});
});
</script>
</body>
</html>
The most helpful JQUERY solutions