I've got a script that allow users to add notes about a users account. When they click on add notes, a pop-up box appears, in which they can add notes and press submit, which adds it to the database.
What I want to be able to do is, when they press submit, the data is written onto a different page which then (for simplicity) goes to a different page and that page automatically closes the small window and also refreshes the main window, so that the new added note can be displayed.
Any ideas on how to do this? I know closing the window isn't hard, especially as it's a browser opened one, so it will not come up with the usual message of the webpage is trying to close this window. What I really need to know is how to send a refresh command to the main window or get it to load the current page or something along those lines.