
Hi,
I am beginners in Programming language and How can i create a pop up box in JavaScript. That will ask the confirmation alert. Please any programmers who know please send me the example or provide online reference so that i will try to do myself.
Thanks,

Hi,
In JavaScript you can find three types of pop alert boxes. These are alert, confirm, prompt pop up boxes found in JavaScript. You are asking how to create Confirm Alert pop up box in JavaScript. Below Given example for its.
<html>
<head>
<script type="text/javascript">
var a=confirm("This is a cofirm box");
if(a==true)
{
document.write("You have clicked ok");
}
else
{
document.write("You have clicked cancel");
}
</script>
</head>
</html>
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.