---
title: "Discussion on \"Getting notified in JavaScript when a Media Query changes\" | Hashnode"
description: "Discussion on \"Getting notified in JavaScript when a Media Query changes\". Media queries are awesome and well used in modern web development.\nBut how can one notify JavaScript if a certain media query is met.\nThere is a window listener called: matchMedia, and it does exactly this!\nThis is what we will be making today:\n\nJava..."
url: "https://hashnode.com/posts/getting-notified-in-javascript-when-a-media-query-changes/5f49f0cbc3f717522b11a9eb"
---

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

Discussion

# [Getting notified in JavaScript when a Media Query changes](https://h.daily-dev-tips.com/getting-notified-in-javascript-when-a-media-query-changes?utm_source=hashnode&utm_medium=feed)

Media queries are awesome and well used in modern web development. But how can one notify JavaScript if a certain media query is met. There is a window listener called: matchMedia, and it does exactly this! This is what we will be making today: Java...

Aug 29, 2020 · 2 min read · h.daily-dev-tips.com  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#media-queries](https://hashnode.com/tag/media-queries)
-   [#2articles1week](https://hashnode.com/tag/2articles1week)
-   [#developers](https://hashnode.com/tag/developers)

## Written by

[Chris Bongers](https://hashnode.com/@dailydevtips)

@dailydevtips · Cape Town, SA

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

Looking to get into development? As a full-stack developer I guide you on this journey and give you bite sized tips every single day 👊

I'm a full-stack developer from South Africa 🇿🇦. I love writing about JavaScript, HTML and CSS.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
