For example, there is such a code:
$(document).ready(function(){ var cur_width = $(window).width(); $(window).resize(function(){ if($(window).width() <= 720 && cur_width > 720){ //reload location.reload(); } else if($(window).width() > 720 && cur_width <= 720){ //reload location.reload(); } }); }); How to output html instead of reloading in this code?