Answers for "window reload in only 767 screen"

0

window reload in only 767 screen

$(document).ready(function(){
  $(window).on('resize',function(){
      if ($(window).width() < 767) {   
        location.reload();  // refresh page 
      }
      else {  
        // width more than 768px for PC  
      }
  }); 
});
Posted by: Guest on April-19-2021

Browse Popular Code Answers by Language