Testing Device orientation using Javascript

Javascript can actually detect an iOS device flip event and determine the device orientation (landscape or portrait).

There are many use cases for this, which can be detailed once the functionality is tested.

The test

This Javascript solution is based on an article called Detect iOS Device Orientation by William Malone

The following text will change depending on the orientation of your iOS device. The announcement are marked as live regions so screen readers should announce them automatically as the device orientation changes.

Current device orientation is unknown.