$(window).bind("orientationchange",function(e){ if(e.orientation == "landscape"){ //横置きの場合 } else{ //縦置きの場合 } });