prompt, confirm ,alert all together
This article explains usage of alert ,prompt,confirm
Let's put all together with some conditional statement in one example and proceed further.
confirm("Are you sure you want to see the rating");
Here if is a conditional statement that checks value of v. If v is greater than 5 then an alert message is fired with message as Good.
If v is equals to 5 then corresponding message is fired.
Apart from above two cases for all the other a message box with message ‘Poor’ is displayed.
I think now you are confident enough on alert, confirm, prompt.
Let's move on to the next chapter then...
Previous Chapter: Working with confirm and prompt
More Tutorials: Tutorial Index