I have a popup window where the user can fill out a form and it gets emailed to me through a php script when the submit button is clicked.
Once the submit button is clicked, I would also like the popup window to close.
The popup window also has a close button that calls a closeWindow function that closes the popup.
Can I call the same closeWindow function once the submit button is clicked? If so, how would I go about doing that.