Stateless Close Pop-Up Window

Stateless Close Pop-Up Window

Good day,

I have a pop-up window with a Stateless form, when I click a button it should close the window, initially it works fine, but now the window stills open,

I use the following script

openUrl("javascript:window.close ", "Same window");

Best Regards,