Answers for "if screen grater than redirect to other page"

0

if screen grater than redirect to other page

<script type="text/javascript">
   function redirect() {
   if (screen.width <= 950) {
      window.location = "https://www.google.com/";
   }
Posted by: Guest on October-03-2020
0

if screen grater than redirect to other page

<script type="text/javascript">
    $(window).on('load resize',function(){
        if($(window).width() < 950){
            window.location = "https://www.google.com"
        }
    });
</script>
Posted by: Guest on October-03-2020

Code answers related to "if screen grater than redirect to other page"

Browse Popular Code Answers by Language