Posted by amanda on .
when working in notepad, i need to use pop-up boxes (alert, confirm,etc). When a user presses ok more boxes come up. however if the user presses cancel i want them to go back to the homepage (thus stopping the other boxes from coming up). how do i do that?
This is hard to answer without typing out the entire code for you.
What I would do is have the confirm box come up. Then an "if" statement.
Code for your new input box
If you don't declare anything for "cancel," it will just go back to the last page and stop the cycle.
Cool. It all showed up. So try posting your code. If it comes up, great.