I have a drop-down list for categories. I created a popup for new category. When I hit submit the form, a new category is stored in a DB table, which will show on the drop-down list for categories. However, when I submit the form, it closes and reload so quick that the new category is not inserted into the DB table yet. How do I set 5 seconds to reload the parent page after the popup window closes.
My code:
function reloadIt() {
opener.location.reload(true);
self.close();
}
Thanks.