How to Add Message and Confirmation Boxes Using JavaScript?
Answer Posted / 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 |
Post New Answer View All Answers
write a code that user can choose/alter Body Text Size
Reading which Non-Character Key was pressed
how to copy form data between different pages
function to combine two or more arrays
code to positioning of window in certain dimensions
How to encode and decode URL strings?
how to create Expandable and Collapsible Menus
code to Hide and Show form controls
code to set the main window's size
program to show a progress bar
Code to Block submission of form by pressing Enter Key
I have a doubt regarding including tags in a function. I have written a function in javascript in a html page. The function got called by clicking a button, i want to display the results in same html page by placing tags in the function. (this hmtl page is static page) Is this possible? example: