I want a JS popup to appear after something is successfully completed. How do I make it appear, and disappear only when the user closes it, then redirect to the next page? By the way this is in a php file. I used print to print the code for a JS alert to the page, then redirect, but that makes the popup only appear if your computer is very slow - it makes the popup but then quickly redirects. How do I fix this?
If you want to use the
redirect() function provided in pset7 I'm not sure how, but in general you can do it like so: