computers-html/javascript

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.

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

  1. 👍 0
  2. 👎 0
  3. 👁 66
asked by amanda

Respond to this Question

First Name

Your Response

Similar Questions

  1. computers-html/javascript

    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

    asked by amanda on March 3, 2007
  2. 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

    asked by pep on July 30, 2013
  3. computer programming

    : Create a program like KBC game show where program ask user 3 different question one after another and the user should answer them. If the answer are correct then pop up the message as “you got the right answer” and must ask

    asked by ravi on January 21, 2012
  4. Programming Logic and Design (help?)

    Design a retirement planning calculator for Skulling Fincancial Services. Allo a user to enter a number of working years remaining in the user's career and the annual amount of money the user can save. Assume that the user earns

    asked by Aubrey on March 1, 2018
  5. Math

    Jim paid $ 5.55 for 1 notepad and 7 pencils. Anne paid $ 12.28 for 3 notepads and 2 pencils. How much does each notepad cost? Show all work

    asked by Bill on April 7, 2014
  6. math

    Jim paid $ 5.55 for 1 notepad and 7 pencils. Anne paid $ 12.28 for 3 notepads and 2 pencils. How much does each notepad cost? Show all work. Thanks

    asked by Billy on April 7, 2014
  7. 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

    asked by Corey on July 21, 2014
  8. programming

    write a payroll program that promt a user to enter his name,hourly rate,working hours in the week and display the amount earning by each employee in Rand.user is not allowed to enter any negative value for hourly rate and working

    asked by Anonymous on April 20, 2012
  9. 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

    asked by Joe on February 17, 2013
  10. 6th grade Math

    Having a problem on a proportion question. The problem is you have surveyed 30 people on their favorite song. 21 females and 9 males. The most popular genres are pop, country, and hip hop. The ratio for females who picked pop is

    asked by Brandi on September 26, 2012

More Similar Questions