Online
 
Sunday, 23 November 2008
 
 

JavaScript User-Created Events | Print |  E-Mail
 

Virtually everything a visitor does when he visits a site generates an event—from clicking with the mouse to selecting text on a Web page. This allows you to use JavaScript as an eventdriven language. Because the basic events presented in the previous section run automatically, they could be considered sequential events. The events presented in this section only happen because of something the user does in the Web site. The names and descriptions of all usercreated events are as follows:

 

 

  • OnAbort. This event is triggered when the user interrupts the transfer of data to the browser, such as by pressing the Stop button.

  • onBlur. This event is triggered when an element loses focus, either because the user clicked outside of the element's bounds or because he or she hit the Tab key.

  • onBounce. This event is triggered when then contents of a MARQUEE element has reached the edge of the page.

  • onChange. This event is triggered when an element loses focus after the contents of the element have changed. An example of this is changing the contents of a text field on a form then clicking the Submit button.

  • onClick. This event is triggered when the user presses and releases the mouse button or keyboard equivalent.

  • onDblclick. This event is triggered when the user double-clicks a mouse button.

  • onDragDrop. This event is triggered when the user drags a desktop icon into the browser window.

  • onDragStart. This event is triggered when the user begins selecting elements on the page.

  • onFocus. This event is triggered when an element gains focus.

  • onHelp. This event is triggered when the user presses the F1 key or chooses Help from the browser window.

  • onKeyDown. This event is triggered when the user begins pressing a key on the keyboard.

  • onKeyPress. This event is triggered when the user presses and releases a key on the keyboard.

  • onKeyUp. This event is triggered when the user releases a key on the keyboard.

  • onMouseDown. This event is triggered when the user begins pressing a mouse button.

  • onMouseMove. This event is triggered when the user moves the mouse cursor.

  • onMouseOut: This event is triggered when the user takes the mouse cursor outside of the browser or element bounds.

  • onMouseOver. This event is triggered when the user positions the mouse cursor over an element.

  • onMouseUp. This event is triggered when the user releases a mouse button.

  • onMove. This event is triggered when the user moves the browser window.

  • onReset. This event is triggered when the user clicks the Reset button.

  • onResize. This event is triggered when the user resizes the browser window.

  • onRowEnter. This event is triggered when the data in a databound object has changed in the current row.

  • onRowExit. This event is triggered when the data in a databound object is about to change in the current row.

  • onScroll. This event is triggered when the user adjusts an element's scroll bar.

  • onSelect. This event is triggered when the user selects text in either an INPUT or TEXTAREA element.

  • onSelectStart This event is triggered when the user is beginning to select an element.

  • onSubmit. This event is triggered when the user clicks the Submit button on a form.


This entry was posted on . You can follow any responses to this entry through the RSS 2.0 feed. You can leave a comment. Tags: javascript, java script, html, free code, window, menu, form, popup, source, date calculator, calendar, javascripts, image, javascript help, javascript popup window, forms, calendars, games, Web design builder, webmaster, development.
Users' Comments (0)

Comment an article
  Name
  E-mail
   Title
Available characters: 4000
 Notify me of follow-up comments
This image contains a scrambled text, it is using a combination of colors, font size, background, angle in order to disallow computer to automate reading. You will have to reproduce it to post on my homepage
Enter what you see:

No comment posted

Jumbo Coklat
 
Top! Top!