Guest_imported
New member
- Jan 1, 1970
- 0
I'm pretty new to javascript and could really use some help on this topic.
I wanted to create a function that would reopen the prompt box until the right entry was made in it. for example say i have a question like this in my prompt box:
"what is my favorite color?" now if the user chose the wrong color I would display an alert box with some message in it to try again and reopen the prompt box upon closing of the alert box. This would continue until the right answer was picked. How can accomplish this? Any help here would be greatly appreciated.
thanks
I wanted to create a function that would reopen the prompt box until the right entry was made in it. for example say i have a question like this in my prompt box:
"what is my favorite color?" now if the user chose the wrong color I would display an alert box with some message in it to try again and reopen the prompt box upon closing of the alert box. This would continue until the right answer was picked. How can accomplish this? Any help here would be greatly appreciated.
thanks