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 |
advance the focus to next consecutive fields when Enter Key is pressed
how to Scroll a DIV content
code to sorting an array of objects
how to copy form data between different pages
maximizing the main window
function to combine two or more arrays
how to pass data between pages using Frames
code to images to rollover
write a code that user can choose/alter Body Text Size
how to delay a function call ?
validation code / function to allow only Letters in a text box
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