View Single Post
 
Old May 28th, 2005, 11:47 AM
joefawcett's Avatar
joefawcett joefawcett is offline
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

To clarify:
Code:
obj[‘on’ + event]
if event = "click" then
 the above equals:
Code:
obj["onclick"]
which is the same as:
Code:
obj.onclick
Presumably the author was tring to dynamically assign event handlers.


--

Joe (Microsoft MVP - XML)