Close the current window by clicking on the gray area. The gray area is the non-shaped area. I used JavaScript .#modal - This is a gray blackout area.
let writeForm = document.getElementById("write"); document.onclick = function(e) { console.clear(); if (e.target != writeForm && !writeForm.contains(e.target)) { window.location.replace("#"); }; console.info(e.target !== writeForm, !writeForm.contains(e.target)); };
How to do this in pure "css" I don't have idea..
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Close the current window by clicking on the gray area.
The gray area is the non-shaped area.
I used JavaScript
.#modal - This is a gray blackout area.
How to do this in pure "css" I don't have idea..