---
title: "Discussion on \"Is Javascript the only option to toggle modals?\" | Hashnode"
description: "Discussion on \"Is Javascript the only option to toggle modals?\". That's the question that has always been on my mind untill I stumbled upon a tutorial explaining another method of achieving this using pure CSS.\nIt is made possible in pure CSS using the :target pseudo-selector.\nThe pseudo selector is available on a..."
url: "https://hashnode.com/posts/is-javascript-the-only-option-to-toggle-modals/5fafd24f847b43437e6486ba"
---

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

Discussion

# [Is Javascript the only option to toggle modals?](https://usmahm.hashnode.dev/is-javascript-the-only-option-to-toggle-modals?utm_source=hashnode&utm_medium=feed)

That's the question that has always been on my mind untill I stumbled upon a tutorial explaining another method of achieving this using pure CSS. It is made possible in pure CSS using the :target pseudo-selector. The pseudo selector is available on a...

Nov 14, 2020 · 2 min read · usmahm.hashnode.dev  
Read the article

-   [#css3](https://hashnode.com/tag/css3)
-   [#css](https://hashnode.com/tag/css)
-   [#hashnodebootcamp](https://hashnode.com/tag/hashnodebootcamp)
-   [#hashnodebootcamp2-1](https://hashnode.com/tag/hashnodebootcamp2-1)

## Written by

[Ahmad Usman](https://hashnode.com/@Usmahm)

@Usmahm · Osun, Nigeria

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

## Responses 1

Markdown supported · ⌘↵ to post

[Kenn Kibadi](https://hashnode.com/@Kenn)

[May 27, 2021](https://hashnode.com/posts/is-javascript-the-only-option-to-toggle-modals/5fafd24f847b43437e6486ba/comment/60affdf45c02001765cf4c2a)

Very interesting
