I want to close the opened window by clicking on the gray background.
But when I click on the window itself, it does not close
CodePudding user response:
Create a button that occupies the entire screen behind the red mark button. Set this button's background to none and add an onclick event just as this red mark button