I have a Visualforce page exposed through force.com site. This page is exposed through an iframe in a popup (in a wordpress site). The page has some information to fill up and on the click of submit it saves in Salesforce. Also I want to close this popup once it is submitted. I tried using window.parent.close(); and window.parent.refresh() but it doesn't work.
Here is how my code looks like -