Is there any way of dynamically adding or changing an event for an HTML tag.
I would like to add or change an 'onMouseOver' event within a <div> tag (or any other tag for that matter).
I have tried 'setAttribute' but this does not work, presumably because it is an event not an attribute that I want to set.
I would like to add or change an 'onMouseOver' event within a <div> tag (or any other tag for that matter).
I have tried 'setAttribute' but this does not work, presumably because it is an event not an attribute that I want to set.