$(document).on("pagecreate",function(event){ $(window).on("orientationchange",function(){ if(window.orientation == 0) { alert("potrait"); } else { alert("landscape"); window.screen.lockOrientation('landscape'); } }); });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)