I was wondering if is there any way to create a custom event in javascript. I would want to know when the content of a div has changed and then fire a function.
@KorSep 03.2009 — #But that "content of a div" is not to be changed unless a function, which uses some methods, is fired itself by a certain event, following a certain action. Now simply fire the other function at the end of the first function's code lines.
Anyway, your request is too vague. Can you detail a little bit your aim? Maybe an example
@jfhe88authorSep 03.2009 — #I acctually want to avoid adding the last line of code in every function that changes the div. But maybe is the easiest way, thanks