Home Answers Viewqa Java-Beginners confirm message box

 
 


Sing S
confirm message box
1 Answer(s)      4 years and 3 months ago
Posted in : Java Beginners

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









Related Pages:
confirm message box - Java Beginners
confirm message box  How can I create a confirm message with Yes... function showConfirm() { myBooleanVariable = newConfirm( 'My Confirm Title', 'My Confirm Message', 2,0,0) if (retVal==true) return true; else
Yes/No confirm box with vbscript - Framework
Yes/No confirm box with vbscript  I'm using a Yes/No confirmation with vbscript. But the in the confirm box, the titiel is coming along...('This is the message, with custom options
Show message and confirm dialog box
Show Message and Confirm Dialog Box - Swing Dialogs... the main window or frame then a confirm message dialog box will open with three... types of message box. There are three types of message dialog box that you can
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
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
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
Changing the message box to a specific color
Changing the message box to a specific color  How do you change the message box color to a specific color? I can get the color to change with each... the message box to red but its not really working. Can you help me
Java Message Box - Java Beginners
Java Message Box  I want to display the variable value in message box...); But the message box display nothing. Is there any way to display the value of s in message box. Please help me as soon as possible.  Hi
input ang message box - Java Beginners
Boxes. Show the result with Message Dialog Boxes. Set the Message Dialog Box Type to Information Message.  Hi Friend, Try the following code: import...input ang message box  can you help me to calculates for the sum
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
how to add save,discard,& cancel button in a message box - Struts
how to add save,discard,& cancel button in a message box  how to add save,discard,& cancel button in a message box
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
how do you change the message box to a specific color
how do you change the message box to a specific color  How do you change the message box color to a specific color? I can get the color to change... the message box to red but its not really working. Can you help me
Hollow Box
Hollow Box  Write an application program that will draw a hollow box (a box with empty space in between). The program will ask the user to key in a whole number larger or equals to 5. An error message would appear if the user
Show Dialog Box in Java
;    Message dialog box is used to display informative... the message Dialog box. Our program display "Click Me" button on the window and when user clicks on it program displays Message box with "OK"
JavaScript Pop Up Boxes
or an alert message is to generate then we can use alert box, user has to click ok button to proceed. ii)    Confirm Box: This  box is used when...: Example 2 (Confirm Box): <html> <head> <script type="
Flex Alert Box example
Flex Alert Box example       Alert box is a dialog box that appears on window with some message and stays rigid until the event associated with it is not done. Alert
JSF message Tag
JSF message Tag      In this section we will explain you JSF message tag. This is used to display the most recent message for the component. This is used to show the message
To Display the 'Last Modified' message in JSP
To Display the 'Last Modified' message in JSP  I have to display the "Last Modified" auto save message in a portlet page at the right end corner... the text box named Actual Hours when i change anything in that textbox 'Last
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
Java error dialog
; A Java dialog box is an independent sub window  that is used to notice a temporary message to the user. The dialog box find its extensive... box show an error box that gives an error message or  warning message.To
alert box in iphone
alert box in iphone  hello, how can i show alert box in my iphone application??   hello, you can use this code for show the alert .. UIAlertView *alt = [[UIAlertView alloc] initWithTitle: @"Title" message: @"Any
Getting message from the server using RPC( Remote Procedure Call )
Getting message from the server using RPC( Remote Procedure Call... describes the procedure of retrieving message from the server via RPC. The steps involved in geting message from the server are described below:- Step1:-Right
Popup Box in JavaScript
; Popups are of three type- Alert Popup Box Confirm Popup Box Prompt Popup Box In this Tutorial we want to describe you... Popup Box in JavaScript     
how to create alert message after data submitted into database
how to create alert message after data submitted into database  I want to create alert message box after data stored into database and redirect to another page, how to do
Display alert box on clicking link
Display alert box on clicking link In this tutorial, we will display alert box to prompt message using jQuery. In the below program , html page contains a "a href" link. On clicking this link ,a alert box prompt message
Show input dialog box
on the "Ok" button of the input dialog button then a message dialog box...; otherwise it will display a message dialog box that has the message "You pressed... Swing Input Dialog Box Example - Swing Dialogs  
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
how to get a numeric value from a message - JSP-Servlet
to get a numeric value from a following message matter i.e Dear [1], Your cl is [2] ,el is [3],bonus is[4] Regards HR. This message is in a text box am getting this message using //following code
Combo Box operation in Java Swing
is not blank otherwise a message box will display with the message "Please... if the combo box has one item at least otherwise a message box will display... Combo Box operation in Java Swing   
JavaScript Checkbox In DropDown box
JavaScript Checkbox In DropDown box In this section, you will learn how to display the checkboxes inside the dropdown box. Now to implement this, we have.... An alert box will display the selected values. Here is the code
What is the difference between $message and $$message?
What is the difference between $message and $$message?  What is the difference between $message and $$message
message passing
message passing  how message is passed using jade technology
Getting message from the server using RPC( Remote Procedure Call )
Getting message from the server using RPC( Remote Procedure Call... describes the procedure of retrieving message from the server via RPC. The steps involved in geting message from the server are described below:- Step1:-Right
Alert Box in Flex
mx.controls.Alert class. An Alert Box contains a title, a message, an image...Flex Alert Box Components Adobe Flex provides many types of components, in this tutorial we will study visual component. 1. Alert Box: In the present
JavaScript Combo Box Validation
JavaScript Combo Box Validation       This application illustrates how to validate the combo box using JavaScript validation. In this example we create a combo box of different
Store combo box value - Development process
Store combo box value  Hi , this is my code. Here wen i click submit button combo values are stored like 1,2,3... but i want to store value . plz... message the data entered in first field should not be erased .i think the page get
how to get small rectangular box or small window - JSP-Servlet
how to get small rectangular box or small window   Dear sir... or small window in that it has to show a full content of a message within a large... a full message ,so please help me if any changes in a code
Use of Select Box to show the data from database
Use of Select Box to show the data from database       Example program using Select Box to show retrieved data from database This example will describe you the use of Select Box in a JSP
how to use confirmation alert box before delete in jsp?
how to use confirmation alert box before delete in jsp?  I use submit button.I want alert box before deleting data.   1)application.jsp... language="javascript"> function deleteRecord(id){ var doIt=confirm('Do you want
Java Message Services - JMS
Java Message Services  What is Java Message Services
Objective C Message Passing
Objective C Message Passing  What exactly a message passing means in Objective C? and how can i pass a message to a method
Message Resource Bundle work.
Message Resource Bundle work.  How does Value replacement in Message Resource Bundle work

Ask Questions?

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.