thank you very much! i will try it as soon as i get home~~ would you like you explain it for me? what does 'e' mean?and what do the attributes of 'e' mean?
The properties of the Event instance also depend upon browser. Standards-compliant browsers follow the W3C layout of this object -- IE made up its own layout.
Because of such difference in how real browsers and IE handle events, if you are going to be doing event handling in your pages, it's best to adopt a JavaScript library that normalizes these differences on your behalf. Otherwise, you end up writing one set of code for IE, and one for standards-compliant browsers. Both the Prototype and jQuery libraries do this for you. [ April 16, 2008: Message edited by: Bear Bibeault ]