appending a new function at the end of list of functions assigned to a javascript event
Let's say, I've a input button like this:  
    <code>
    <input type="submit" value="Submit" onclick="fxn1();fxn2();fxn3();"/>
    </code>  
  
Now, i wan't to add a new function fxn() (prepend or append) to the list of functions already assigned to onclick event. How would I do that? Also, the number of functions assigned to onclick is not known and hence can be anything greater than 0 or even 0 sometimes.
appending a new function at the end of list of functions assigned to a javascript event
===

Let's say, I've a input button like this:  
    <code>
    <input type="submit" value="Submit" onclick="fxn1();fxn2();fxn3();"/>
    </code>  
  
Now, i wan't to add a new function fxn() (prepend or append) to the list of functions already assigned to onclick event. How would I do that? Also, the number of functions assigned to onclick is not known and hence can be anything greater than 0 or even 0 sometimes.