How to create a confirmation box?

Ads
 

Ads

How to create a confirmation box?

How to create a confirmation box?

View Answers

November 10, 2010 at 2:58 PM

Confirm boxes are a convenient way to give a web visitor a simple choice: to accept or to decline something. They are displayed using the JavaScript confirm function.

for example-

confirm("Text or question you want to use");

The code is as -

<script type="text/javascript">
function show(){
var c= confirm("This is the comfirm box");
if(c == true)
{
alert("You select ok");
}
if(c== false)
{
alert("You select cancel");
}
}
</script>

Ads









Related Tutorials/Questions & Answers:
How to create a confirmation box?
how to use confirmation alert box before delete in jsp?
Advertisements
Confirmation Mail
How to create an input box?
How to create arrays in JavaScript?
how to create frame in swings
how to create notepad in java
Show Confirmation Dialog on Click the Command Link
how to create session for login
PHP Form Part-6 - How to Deals with Text Boxs
How to create a class in java
How to create form in Swings
how to create web aplli
how to create web aplli
how to create a queue - JMS
How to Create Keyboard in JAVA
how to create ipa file
how to create a table
how to create uiwebview programmatically
How To Create a Table.
How to create charts in Java?
how to create array in r
How to create options in HTML
How to create variable in TensorFlow?
how to create vector in r
how to create interfaces in java
How to Create Pop Up Boxes in JavaScript
how to create servlet
how to create web page on jsp?
how to create reports in swing java?
How to Create Dynamic URLs in PHP?