SyntaxFix
Write A Post
Hire A Developer
Questions
You can make a background occupying all the screen size transparent and listen to the onClick event to dismiss it.
background
transparent
onClick
dismiss