dan gibson
dan gibson

Reputation: 3665

window.orientation reports old value in onresize

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?

Upvotes: 0

Views: 1056

Answers (1)

lbz
lbz

Reputation: 9738

onorientationchange is probably what you want to use.

Upvotes: 2

Related Questions