[thelist] unobtrusive onclick without set attribute?

Jon Hughes hughesj at firemtn.com
Tue Jul 17 16:51:51 CDT 2007

Normally, I would simply use:

Obj.property = "value";


Obj.onclick = "alert('hello world');";

Does not do anything, while

Obj.title = "New Title";

Sets the title of obj to "New Title"

So the question is, without using the buggy/unsupported "setAttribute" -
How do I add this onclick?

Thank You,
- Jon Hughes 

More information about the thelist mailing list