Search code examples
javascriptwindows-phone-7browserorientation-changes

orientationchange() on windows phone browser


is there a way to capture an orientation change event in Windows phone 7 in the browser?

in Android and iOS there is the onOrientationchange() event - but in Windows mobile IE9 (Windows phone 7) it just don't work...


Solution

  • Unfortunately it doesn't look like you can. You could use some javascript to detect changes to the screen width though to emulate similar behaviour