confirm message box

Ads
 

confirm message box

View Answers

March 17, 2009 at 2:25 AM

Hi friend,

Code to help in solving the problem :


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<script language="JavaScript" type="text/javascript">
<!--
IE4 = document.all;
function newConfirm(title,mess,icon,defbut,mods) {
if (IE4) {
icon = (icon==0) ? 0 : 2;
defbut = (defbut==0) ? 0 : 1;
retVal = makeMsgBox(title,mess,icon,4,defbut,mods);
retVal = (retVal==6);
}
else {
retVal = confirm(mess);
}
return retVal;
}
//-->
</script>
<SCRIPT LANGUAGE="VBScript">
<!--
Function makeMsgBox(title,mess,icon,buts,defbut,mods)
butVal = buts + (icon*16) + (defbut*256) + (mods*4096)
makeMsgBox = MsgBox(mess,butVal,title)
End Function
-->
</SCRIPT>
<script language="JavaScript" type="text/javascript">
function showConfirm() {
myBooleanVariable = newConfirm(
'My Confirm Title',
'My Confirm Message',
2,0,0)
if (retVal==true) return true;
else{
location.href='blah2.htm';
return false;
}
}
//-->
</script>
</head>
<body>
<a href="blah.htm" onClick="return showConfirm()">click</a>
</body>
</html>

Thanks

Ads









Related Tutorials/Questions & Answers:
javascript confirm box
javascript confirm box  javascript confirm box
Servlets and confirm box
Servlets and confirm box  Sir...! I want to insert or delete records form oracle based on the value of confirm box can you please give me the idea.... thanks
Advertisements
Servlets and confirm box
Servlets and confirm box  Sir...! I want to insert or delete records form oracle based on the value of confirm box can you please give me the idea.... thanks
Servlets and confirm box
Servlets and confirm box  Sir...! I want to insert or delete records form oracle based on the value of confirm box can you please give me the idea.... thanks
message box
message box  How to show the message "invalid username and password" after redirecting the page to the login form
Message Box Java
Dialog Box in Java - Swing Dialogs Show Message and Confirm Dialog Box...In this section we will create a message box in Java using a Java API class. A certain message, warning or information can be displayed in this message box
Java Message Box
Java Message Box In this tutorials you will learn about how to create Message Box in Java. Java API provide a class to create a message Box in java. By message box we mean a box in which message is displayed or a box from which input
javascript confirm yes no
confirm dialog box yes or no in JavaScript?   if (confirm('Are You... There is confirm Box popup in JavaScript that can be used to get confirmation from user... be two options in confirm box "ok" and "cancel". or may be yes or no. Syntax
Confirm problem
Confirm problem  Sir i have used following code in button delete onclick="if (confirm('sure?')) submit();" and if i choose cancel it still submits the form however if choose cancel i want to remain on same jsp page please help
confirm delete
confirm delete  Sir, I want to ask confirmation before deletion, i m using submit button then the form is passed to servlet for deletion,Please help Thanks in advance
ModuleNotFoundError: No module named 'confirm'
ModuleNotFoundError: No module named 'confirm'  Hi, My Python... 'confirm' How to remove the ModuleNotFoundError: No module named 'confirm... to install padas library. You can install confirm python with following command
Java Alert Box
JOptionPane class to display the message alert box.  JOptionPane class is available...Java Alert Box In this example we will describe java alert box. First of all we have created class than main method after that we have created alert box
ModuleNotFoundError: No module named 'django-email-confirm-la'
ModuleNotFoundError: No module named 'django-email-confirm-la'  Hi...: No module named 'django-email-confirm-la' How to remove the ModuleNotFoundError: No module named 'django-email-confirm-la' error? Thanks   
ModuleNotFoundError: No module named 'odoo8-addon-procurement-mrp-no-confirm'
ModuleNotFoundError: No module named 'odoo8-addon-procurement-mrp-no-confirm...: ModuleNotFoundError: No module named 'odoo8-addon-procurement-mrp-no-confirm' How...-no-confirm' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'odoo8-addon-web-copy-confirm'
ModuleNotFoundError: No module named 'odoo8-addon-web-copy-confirm'  ...: No module named 'odoo8-addon-web-copy-confirm' How to remove the ModuleNotFoundError: No module named 'odoo8-addon-web-copy-confirm' error
What is the difference between $message and $$message?
What is the difference between $message and $$message?  What is the difference between $message and $$message
difference between $message and $$message
difference between $message and $$message  What is the difference between $message and $$message?   Hi friends, $message is a simple variable whereas $$message is a reference variable. Example: $name = 'Bharat
message passing
message passing  how message is passed using jade technology
ModuleNotFoundError: No module named 'box-box'
ModuleNotFoundError: No module named 'box-box'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'box-box' How to remove the ModuleNotFoundError: No module named 'box-box
ModuleNotFoundError: No module named 'box-box'
ModuleNotFoundError: No module named 'box-box'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'box-box' How to remove the ModuleNotFoundError: No module named 'box-box
msg box in jsp
msg box in jsp  i need the source code to display the msgbox in jsp....but one condition is,i need to use it in the current page itself...now i use the message box means it prints it into another page...i need to resolve it plz
Popup dialog box in java
dialogs-user can customize dialog box. Here is a simple popup message dialog box...Popup dialog box in java  How to display popup dialog box in java?   Dialog Box- A dialog box is an independent small window which appear
Helps with combo box and frame
..) ,confirm button and cancel button at bottom of the frame. When i put something on the second window and click confirm i would have the information on the combo box. i...Helps with combo box and frame  Hi i have a combobox and when i click
input box
input box  give me the code of input box in core java
input box
input box  give me the code of input box in core java
select box and text box validations
select box and text box validations  hi, any one please tell me how to set validations for select box and text boxes using bean classes? thank you   Please visit the following link: http://www.roseindia.net/jsp/user
ModuleNotFoundError: No module named 'odoo10-addon-purchase-variant-configurator-on-confirm'
-configurator-on-confirm'  Hi, My Python program is throwing following error...-configurator-on-confirm' How to remove the ModuleNotFoundError: No module named 'odoo10-addon-purchase-variant-configurator-on-confirm' error? Thanks
ModuleNotFoundError: No module named 'odoo10-addon-purchase-variant-configurator-on-confirm'
-configurator-on-confirm'  Hi, My Python program is throwing following error...-configurator-on-confirm' How to remove the ModuleNotFoundError: No module named 'odoo10-addon-purchase-variant-configurator-on-confirm' error? Thanks
ModuleNotFoundError: No module named 'odoo10-addon-web-confirm-window-close'
ModuleNotFoundError: No module named 'odoo10-addon-web-confirm-window-close...: ModuleNotFoundError: No module named 'odoo10-addon-web-confirm-window-close' How to remove the ModuleNotFoundError: No module named 'odoo10-addon-web-confirm
ModuleNotFoundError: No module named 'odoo10-addon-web-confirm-window-close'
ModuleNotFoundError: No module named 'odoo10-addon-web-confirm-window-close...: ModuleNotFoundError: No module named 'odoo10-addon-web-confirm-window-close' How to remove the ModuleNotFoundError: No module named 'odoo10-addon-web-confirm
ModuleNotFoundError: No module named 'odoo11-addon-purchase-variant-configurator-on-confirm'
-configurator-on-confirm'  Hi, My Python program is throwing following error...-configurator-on-confirm' How to remove the ModuleNotFoundError: No module named 'odoo11-addon-purchase-variant-configurator-on-confirm' error? Thanks

Ads