Determines whether the current device or browser window is in portrait orientation.
true
false
if (isPortrait()) { // Codes for portrait orientation} Copy
if (isPortrait()) { // Codes for portrait orientation}
Determines whether the current device or browser window is in portrait orientation.