computershtml/javascript
posted by amanda .
when working in notepad, i need to use popup 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.
If (input_box==true)
{
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.
Now, if that helped, typed something up. If it doesn't work, let me know. We'll see what we can do. I don't know how well HTML, JavaScript, etc. will post in here. Here's a test. If this comes up as text, great. If it comes up as a red x, we might be out of luck communicating this easily.
<IMG SRC="nuthin">
Cool. It all showed up. So try posting your code. If it comes up, great.
Matt
Respond to this Question
Similar Questions

computershtml/javascript
when working in notepad, i need to use popup 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 … 
programming
I need to figure this problem out, I am using visual studio C#. • Powers  Write an application that displays a tables of squares and cubes of an integer from 1 to an upper limit. The user should enter the upper limit and press the … 
Javascript
I'm trying to write a script that will allow a user to enter a year and then determine if the year is a leap year. I need to include a form with a single text box where the user can enter a year. I also need to display and alert dialog … 
3rd grade math
sara wants to know how many boxes of cookies her entire girl scout troop sold. How could she use compatible numbers to find the sum? 
programming logic and design
I need help writing pseudocode for this problem: Design a retirement planning calculator for skulling financial services • Allow a user enter a number of working years remaining in the user career and the annual amount of money the … 
Math (for Damon)
Nathan and Steven stacked boxes on a shelf. Nathan lifted 13 boxes and Steven lifted 15 boxes. The boxes that Nathan lifted each weighed 12 lb more than the boxes Steven lifted. Which expression represents the total number of pounds … 
math
Nathan and Steven stacked boxes on a shelf. Nathan lifted 13 boxes and Steven lifted 15 boxes. The boxes that Nathan lifted each weighed 12 lb more than the boxes Steven lifted. Which expression represents the total number of pounds … 
Mathematics
Nathan and Steven stacked boxes on a shelf. Nathan lifted 13 boxes and Steven lifted 15 boxes. The boxes that Nathan lifted each weighed 12 lb more than the boxes Steven lifted. Which expression represents the total number of pounds … 
Math
Moore Supermarket began the year with 300 boxes of oat flake cereal with a unit cost of $1.89. During the year, the following additional purchases were made: May 1 200 boxes@$2.10/each June 1 400 boxes@$2.20/each August 1 250 boxes@$2.40/each … 
Math
Moore Supermarket began the year with 300 boxes of oat flake cereal with a unit cost of $1.89. During the year, the following additional purchases were made: May 1 200 boxes@$2.10/each June 1 400 boxes@$2.20/each August 1 250 boxes@$2.40/each …