C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Resources » Code Snippets » Html »

Event Attributes


Posted Date: 17 Oct 2008    Resource Type: Code Snippets    Category: Html
Author: Miss Meetu ChoudharyMember Level: Diamond    
Rating: 1 out of 5Points: 15



Attribute is a Pieces of information attached to an element and defined in its start tag. It is the Aspects of information about a content object. Attributes may be fields, tags. etc.

Special Note:- Please Provide the values of the attributes in the double quotation sign as "value"


Now let us divide these attributes into three categories for our convince

1. Standard Attributes:-- Common for most of the elements or tags
2. Event Attributes:- The ability to let HTML events trigger actions in the browser, like starting a JavaScript when a user clicks on an HTML element. Below is a list of attributes that can be inserted into HTML tags to define event actions.
3. Optional Attributes:- The Attributes which are specialy for the tag or element and are optional to use

Event Attributes:--


The ability to let HTML events trigger actions in the browser, like starting a JavaScript when a user clicks on an HTML element. Below is a list of attributes that can be inserted into HTML tags to define event actions.

1. onclick
* Value:-- script
* Description:-- Sepcifies what action to be performed on a mouse click
* Note:--Mouse Event, Not valid in base, br, frame, frameset, head, html, iframe, meta, param, script, style, and title elements.
2. ondblclick
* Value:-- script
* Description:-- Sepcifies what action to be performed on a mouse double click
* Note:- Mouse Event, Not valid in base, br, frame, frameset, head, html, iframe, meta, param, script, style, and title elements.
3. onmousedown
* Value:-- script
* Description:--Sepcifies what action to be performed when mouse button is pressed
* Note:- Mouse Event, Not valid in base, br, frame, frameset, head, html, iframe, meta, param, script, style, and title elements.
4. onmouseup
* Value:-- script
* Description:-- Sepcifies what action to be performed when mouse button is released
* Note:- Mouse Event, Not valid in base, br, frame, frameset, head, html, iframe, meta, param, script, style, and title elements.
5. onmouseover
* Value:-- script
* Description:-- Sepcifies what action to be performed when mouse pointer moves over an element
* Note:- Mouse Event, Not valid in base, br, frame, frameset, head, html, iframe, meta, param, script, style, and title elements.
6. onmousemove
* Value:-- script
* Description:-- Sepcifies what action to be performed when mouse pointer moves
* Note:- Mouse Event, Not valid in base, br, frame, frameset, head, html, iframe, meta, param, script, style, and title elements.
7. onmouseout
1. Value:-- script
2. Description:-- Sepcifies what action to be performed when mouse pointer moves out of an element
3. Note:-Keyboard Events , Not valid in base, br, frame, frameset, head, html, iframe, meta, param, script, style, and title elements.
8. onkeypress
* Value:-- script
* Description:-- Sepcifies what action to be performed when key is pressed and released
* Note:- Keyboard Events , Not valid in base, br, frame, frameset, head, html, iframe, meta, param, script, style, and title elements.
9. onkeydown
* Value:-- script
* Description:-- Sepcifies what action to be performed when key is pressed.
* Note:- Keyboard Events , Not valid in base, br, frame, frameset, head, html, iframe, meta, param, script, style, and title elements.
10. onkeyup
* Value:-- script
* Description:-- Sepcifies what action to be performed when key is released
* Note:- Keyboard Events , Not valid in base, br, frame, frameset, head, html, iframe, meta, param, script, style, and title elements.
11. onLoad
* Value:-- script
* Description:--Script to be run when a document loads
* Note:-Window Events Only valid in body and frameset elements
12. onunload
* Value:-- script
* Description:--Script to be run when a document unloads
* Note:- Window Events Only valid in body and frameset elements
13. onchange
* Value:-- script
* Description:-- Script to be run when the element changes
* Note:- Form Element Events Only valid in form elements.
14. onsubmit
* Value:-- script
* Description:-- Script to be run when the form is submitted
* Note:- Form Element Events Only valid in form elements.
15. onreset
* Value:-- script
* Description:-- Script to be run when the form is reset
* Note:- Form Element Events Only valid in form elements.
16. onselect
* Value:-- script
* Description:-- Script to be run when the element is selected
* Note:- Form Element Events Only valid in form elements.
17. onblur
* Value:-- script
* Description:-- Script to be run when the element loses focus
* Note:- Form Element Events Only valid in form elements.
18. onfocus
* Value:-- script
* Description:-- Script to be run when the element gets focus
* Note:- Form Element Events Only valid in form elements.


==
Thanks and Regards
Meetu Choudhary
Co-Founder: msdotnetmentor

For more details, visit http://www.msdotnetmentor.com/?p=262



Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add tags.
Meetu Choudhary  .  Meetu  .  Event Attributes  .  Attributes  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Standard Attributes:
Previous Resource: How to auto refreshe a page
Return to Discussion Resource Index
Post New Resource
Category: Html


Post resources and earn money!
 
More Resources



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use