I’m displaying a web page on an ipod touch that shows window.orientation. It updates this text during the onresize event, and also during a timer. If I turn the ipod then the onresize event shows the old orientation, not the new orientation value. The timer always shows the correct value. Any idea what’s wrong?
I’m displaying a web page on an ipod touch that shows window.orientation. It updates
Share
onorientationchangeis probably what you want to use.