can anyone tel how to lock ipad orientation in landscape for mobile webapps. even if it flip it should not rotate into portrait.
function reorient(e) {
var portrait = (window.orientation % 180 != 0);
$("body").css("-webkit-transform", !portrait ? "rotate(90deg)" : "");
alert("hi");
}
window.onorientationchange = reorient;
window.setTimeout(reorient, 0)
i tried these code but it affecting only the design . where as in my case it should flip