Tuesday, 25 March 2014

How to detect the width of a web browser using jQuery


<script type="text/javascript">
jQuery(document).ready(function(){
jQuery(window).resize(function(){

         var current_width = jQuery(window).width();
   
   
            if(current_width < 400){
           
           
            }
});
  });
</script>

No comments:

Post a Comment