How to Add Message and Confirmation Boxes Using JavaScript?
Answer / guest
public void AddConfirmMessage(WebControl ctl, string
message)
{
ctl.Attributes.Add("onclick", "if ( ! confirm( '"
+ message + "' )) return false; ");
}
public void AddPopupMessage(WebControl ctl, string message)
{
ctl.Attributes.Add("onclick", "alert( '" + message
+ "'); ");
}
| Is This Answer Correct ? | 2 Yes | 1 No |
program to bring a window to the front
how to create a Custom Scrollbar
How to test whether two strings are equal or not ?
Code for Adding Message and Confirmation Boxes Using JavaScript?
Reading which Character Key was pressed
write a program to detect the user's browser ?
code to calculate the number of days between two dates
how to create an anonymous function
code to detect availability of cookies
code to set the main window's size
program that will accept any name and will be stored in an array
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space: