myBtn.Attributes.Add("onclick","callDialog() return false;");
----
btnSubmit.Attributes["OnClick"] = "javascript:GetMsg();";
JavaScript Tutorials
Form Name: f1
Name textbox: Name
Email textbox: Email
Comments text area: Comments
Likes Checkboxes: Liked
Dislikes Checkboxes: Hated
Submit Button Event: Validate()
And here's the function for the Submit event:
function Validate() {
Message = ""
Message = Message + CheckName()
Message = Message + CheckEmail()
Message = Message + CheckComments()
Message = Message + CheckLikes()
Message = Message + CheckHates()
if (Message == "") {
return true
}
else {
alert(Message)
return false
}
}
Calendar
Calendar1
Confirm() Function
Use a javascript confirm box to ask the user if they want to delete
Delete
Another way
Delete
Using JavaScript Along with ASP.NET
to go to this page
Javascript tutorial
JavaScript Bank