Possible to close contact form 7 form when click on "send"?

I use contact form 7 on my second made website with upfront. I permitted acces for this. I also use a plugin to have a new popup with "thanks" when you filled in the form. But the contact form 7 stays, even when you finished the form. I wonder if it is possible the form closes itself when u click on "send". Of course i still want to see the popup with "thanks" after.