Profile Picture
IT Made Easy
The site provides some rough IT Notes that make your life easier. The site currently has notes on HTML, CSS, Regex, OOPS, JS, JQuery, PHP, Java, ASP.NET, C#, Database, Linux, URL Rewrite, SEO, Project Management and Hosting. Please do share this site if you like.

Events

Next
Next
  1. Adding events as an attribute to an HTML element is sometimes known as an inline model or inline registration model.
  2. The approach of assigning a function to an event handler that is an object property is sometimes called the traditional model or traditional registration model.


  • To remove the event we write window.onload=null;
  • One event handler is allowed for any given event and object.


var theEvent = nsEvent ? nsEvent : window.event;


Most modern browsers, the event proceeds down the stack of elements, each captured in turn. It then bubbles back up (from event clicked to the document), firing the event handlers as it goes.

  • Corresponding to addEventListener and removeEventListener in Netscape we have attachEvent and detachEvent
  • Syntax: object.addEventListener('event',eventFunction,boolean); If Boolean is False, Bubble Up
  • Generating Events: focus(), reset(), submit();

IT Notes

by VinodSebastian



IT Downloads


Catalogue