Prevent orientation change in iOS Safari
Jonathan Snook has a work around to this problem. In his slides here, he shows how to (sort of) lock to portrait (see slide 54 and 55). The JS code from those slides: window.addEventListener(‘orientationchange’, function () { if (window.orientation == -90) { document.getElementById(‘orient’).className=”orientright”; } if (window.orientation == 90) { document.getElementById(‘orient’).className=”orientleft”; } if (window.orientation == 0) … Read more