Home arrow JavaScript arrow JavaScript Events: OnError, OnFocus and More
JAVASCRIPT

JavaScript Events: OnError, OnFocus and More


In our last tutorial we left off on the OnDblClick event, which is a block of code that is triggered when the user double clicks on an object. In this article we are going to cover several more of the events available in JavaScript. So put on your thinking helmets and let’s get busy.

Author Info:
By: James Payne
Rating: 3 stars3 stars3 stars3 stars3 stars / 12
December 03, 2007
TABLE OF CONTENTS:
  1. · JavaScript Events: OnError, OnFocus and More
  2. · OnError
  3. · OnFocus
  4. · OnKeyDown
  5. · OnKeyPress
  6. · OnKeyUp

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
JavaScript Events: OnError, OnFocus and More
(Page 1 of 6 )

Before we do however, let's take a peek at the Events table to refresh you puny memory:

 

Event

What Triggers the Event

OnAbort

Occurs when the loading of an image is interrupted

OnBlur

Occurs when an element loses focus

OnChange

Occurs when the user changes the content of a field

OnClick

Occurs when the user clicks an object

OnDblClick

Occurs when the user double clicks an object

OnError

Occurs when an error occurs while loading a document or an image

OnFocus

Occurs when an element has focus

OnKeyDown

Occurs when a keyboard key is pressed

OnKeyPress

Occurs when a keyboard key is pressed or held down

OnKeyUp

Occurs when a keyboard key is released

OnLoad

Occurs when a page or image has completed loading

OnMouseDown

Occurs when a mouse button is pressed

OnMouseMove

Occurs when the mouse is moved

OnMouseOut

Occurs when the mouse is moved off of an element

OnMouseOver

Occurs when the mouse is moved over an element

OnMouseUp

Occurs when the mouse button is released

OnReset

Occurs when the reset button is clicked

OnResize

Occurs when a window or frame is resized.

OnSelect

Occurs when text is selected

OnSubmit

Occurs when the submit button is clicked

OnUnload

Occurs when the user exits the page


blog comments powered by Disqus
JAVASCRIPT ARTICLES

- More Top jQuery Tutorials for Beginners
- More Top jQuery Plugins for Menus
- Top jQuery Tutorials for Beginners
- New UI Framework and SDK for JavaScript Rele...
- JavaScript OpenPGP Tool, Node.js 0.6.3 Avail...
- Yahoo Releases Cocktails Language and Develo...
- Customizing jQuery Slideshows: Dynamic Contr...
- Customizing jQuery Slideshows: the animate()...
- Customizing jQuery Slideshows: slideUp() and...
- Customizing jQuery Slideshows: hide() and sh...
- Web Workers: Performing Calculations in Para...
- More Top JavaScript Frameworks and Libraries
- More Dynamic jQuery Styling Techniques
- The Top JavaScript Libraries
- The Top JavaScript Frameworks

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 5 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials