Event is an action that was caught by JavaScript. When we use JavaScript , we are able to create a website as Dynamic.
Some examples in the use of Event
- Clicking Mouse
- Load images or pages
- Selection Input field in HTML form
- Submit HTML Form
Event onLoad and onUnload
Event onLoad and onUnload occurs when you enter or leave the page . onLoad event usually use it to check on the type and version of the Browser.
Event two is usually used to make the connection with Cookie , which is set when you enter and leave the page .
In the next lesson we will demonstrate the use of these two Event added .
Event onChange, onBlur and onFocus
Event three above this entry is used to put conditions on the transmission of data in the Form.
Event onChange occurs when elements of Form shift value .
Event onBlur occurs when we leave any items , such as leaving the Text Box .
Event onFocus happens when we click on any element of the form, window or frame.
example
In the above example, when we have a cold change on the Text Box email function checkEmail () will process.
Event onSubmit
onSubmit is used to set conditions on the transmission of data before sending data.
example
In the above example, when we click on the button Submit function checkForm will examine whether the merged properly andor.
Event onMouseOver, onMouseOut
Event onMouseOver and onMouseOut generally, they use it to create Rollover buttons.
Event onMouseOver when we take Mouse to put on while onMouseOut happens when we withdraw Mouse.
example
In the above example, when we take the Mouse to put on a link connected Click Me! It will show Popup Box.
Event onClick
Event onClick happens when we take Mouse click on any item on the Screen.
example
Monday, May 5, 2014
10. What is Event?
Subscribe to:
Post Comments (Atom)






0 comments:
Post a Comment