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

To achieve the desired functionality in Notepad, you would need to write JavaScript code that handles the behavior of the pop-up boxes and the redirection to the homepage when the user cancels.

Here's an example of how you can implement this:

```html
<!DOCTYPE html>
<html>

<body>
<script>
function showConfirmAlert() {
var result = confirm("Press OK to continue or Cancel to go back to the homepage.");

if (result == true) {
showAdditionalAlert();
} else {
window.location.href = "homepage.html"; // Replace "homepage.html" with the URL of your homepage
}
}

function showAdditionalAlert() {
var result = confirm("Additional alert!");

if (result == true) {
showAdditionalAlert();
} else {
// Continue with your logic here...
}
}

showConfirmAlert();
</script>
</body>

</html>
```

In this example, the `showConfirmAlert` function displays the initial confirm alert box. If the user clicks "OK", it then calls the `showAdditionalAlert` function, which shows the additional alert box indefinitely until the user presses "Cancel". If the user presses "Cancel" at any point, the page will redirect to the homepage.

You can add more logic or customize the code according to your specific requirements.

To run this code, save it with a `.html` extension and open it in your browser. Testing it in a text editor like Notepad may not give you the desired results, as Notepad is primarily a basic text editor and doesn't have the capability to run JavaScript.