Showing posts with label difference between onclick and onsubmit in html. Show all posts
Showing posts with label difference between onclick and onsubmit in html. Show all posts

Sunday, 27 April 2014

Difference between onClick & onSubmit events in HTML

Solution:-

S.NoonClick()onSubmit()
1
Event Category:
onClick() is a mouse event
Event Category:
onSubmit() is a form event
2
When it occurs:
This event occurs when a user click on mouse button
When it occurs:
This event occurs when we try to submit a form







That’s it!!…..Happy Programming...