---
title: "Comment by Mohammed Sharooque on \"How to close popup when clicking outside it using JavaScript\" | Hashnode"
description: "Great share!"
url: "https://hashnode.com/posts/how-to-close-popup-when-clicking-outside-it-using-javascript/6391a6e9aec36caa5fd1cc93/comment/6391c1ba120246e215ffb61a"
---

[Discussion](https://hashnode.com/posts/how-to-close-popup-when-clicking-outside-it-using-javascript/6391a6e9aec36caa5fd1cc93)

Comment [How to close popup when clicking outside it using JavaScript](https://hashnode.com/posts/how-to-close-popup-when-clicking-outside-it-using-javascript/6391a6e9aec36caa5fd1cc93)

[Mohammed Sharooque](https://hashnode.com/@sharooque)

[Dec 8, 2022](https://hashnode.com/posts/how-to-close-popup-when-clicking-outside-it-using-javascript/6391a6e9aec36caa5fd1cc93/comment/6391c1ba120246e215ffb61a)

Great share!

[Mads Akselsen](https://hashnode.com/@MadsAkselsen)

[Dec 8, 2022](https://hashnode.com/posts/how-to-close-popup-when-clicking-outside-it-using-javascript/6391a6e9aec36caa5fd1cc93/comment/6391c1ba120246e215ffb61a#reply-6391c2950771b6e5cf4a7cf7)

Eyy, appreciate it! :)
