Has anyone noticed this behavior? I\'m trying to write a script that will trigger upon a resize. It works fine on normal browsers, works fine on iPhone, but on iPad, will on
handle the iOS specific event orientationchange by catching window.onorientationchange
if(navigator.platform == 'iPad') {
window.onorientationchange = function() {
// handle orientationchange event
// (here you can take advantage of the orientation property
// - see the good answer above by Vincent)
}
}