---
title: "Discussion on \"The Easiest Way to Detect Device Orientation in JavaScript\" | Hashnode"
description: "Discussion on \"The Easiest Way to Detect Device Orientation in JavaScript\". In this post, we'll take a look at the easiest way to detect device orientation on the web with JavaScript.\nThis is compatible with all major browsers (including Safari) and works on mobile/tablet devices.\nVideo Tutorial\nIf you'd prefer to watch a vi..."
url: "https://hashnode.com/posts/the-easiest-way-to-detect-device-orientation-in-javascript/63208f325483096daa0a82e8"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [The Easiest Way to Detect Device Orientation in JavaScript](https://dcodeyt.hashnode.dev/the-easiest-way-to-detect-device-orientation-in-javascript?utm_source=hashnode&utm_medium=feed)

In this post, we'll take a look at the easiest way to detect device orientation on the web with JavaScript. This is compatible with all major browsers (including Safari) and works on mobile/tablet devices. Video Tutorial If you'd prefer to watch a vi...

Sep 13, 2022 · 2 min read · dcodeyt.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#webdev](https://hashnode.com/tag/webdev)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#tutorial](https://hashnode.com/tag/tutorial)
-   [#beginners](https://hashnode.com/tag/beginners)

## Written by

[Dom (dcode)](https://hashnode.com/@dcodeyt)

@dcodeyt · Australia

  
[View profile](https://hashnode.com/@dcodeyt)

I teach thousands how to code on YouTube 😎

Hello! 👋 I help thousands of people learn to code through my YouTube channel and Udemy courses.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
