How to create a confirmation box?

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>









Related Tutorials/Questions & Answers:
How to create a confirmation box?
ModuleNotFoundError: No module named 'box0'
Advertisements
ModuleNotFoundError: No module named 'boxr'
ModuleNotFoundError: No module named 'boxb'
ModuleNotFoundError: No module named 'boxb'
ModuleNotFoundError: No module named 'boxx'
ModuleNotFoundError: No module named 'boxx'
ModuleNotFoundError: No module named 'boxy'
ModuleNotFoundError: No module named 'boxx'
ModuleNotFoundError: No module named 'boxy'
ModuleNotFoundError: No module named 'boxy'
ModuleNotFoundError: No module named 'boxd-client'
How to force cp to overwrite without confirmation
how to use confirmation alert box before delete in jsp?
Confirmation Mail
PHP Form Part-6 - How to Deals with Text Boxs
Show Confirmation Dialog on Click the Command Link
list boxs
ModuleNotFoundError: No module named 'django-generic-confirmation'
ModuleNotFoundError: No module named 'django-generic-confirmation'
ModuleNotFoundError: No module named 'django-simple-email-confirmation'
ModuleNotFoundError: No module named 'django-user-action-confirmation'
ModuleNotFoundError: No module named 'django-user-action-confirmation'
ModuleNotFoundError: No module named 'openlabs_sale_confirmation_email'
ModuleNotFoundError: No module named 'pinax-phone-confirmation'
ModuleNotFoundError: No module named 'django_confirmation_mixin'
ModuleNotFoundError: No module named 'django-email-confirmation'
ModuleNotFoundError: No module named 'django-generic-confirmation'
ModuleNotFoundError: No module named 'django-mail_confirmation'
ModuleNotFoundError: No module named 'django_phone_confirmation'
ModuleNotFoundError: No module named 'django-Rest-phonenumber-confirmation'
ModuleNotFoundError: No module named 'django-simple-email-confirmation'
ModuleNotFoundError: No module named 'django-user-action-confirmation'
ModuleNotFoundError: No module named 'fio_sale_confirmation_email'
instead of text boxe i have to show check box as selected.
How to create an input box?
How to create arrays in JavaScript?
how to create frame in swings
how to create notepad in java
how to create session for login
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 rdd in pyspark
how to create a table
how to create uiwebview programmatically

Ads