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 |
how to create Expandable and Collapsible Menus
code to calculate the number of days between two dates
how to transform XML Data into HTML
how to create an anonymous function
how to create a Draggable element
communication between main window and new windows
how to create a Custom Scrollbar
Code to Block submission of form by pressing Enter Key
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space:
code to detect versions of different browsers like internet explorer, netscape, mozilla, opera etc
write a program segment that will ask the user if he wants to computer the perimeter of the area of the triangle. if the perimeter is wanted, ask the measure of the three sides and compute for the perimeter. if the area is wanted, ask for the measures of the base and height and compute for the area. display the computed value
validation code / function to allow only Letters in a text box