I'm looking to append some JavaScript to the onclick of a button on the server side. So something like
 //b is a button
 b.Attributes.Add("onclick", "my.js.here();");
but without eliminating any potentially existing onclick event on that button.
EDIT: The above represents a codebehind file (in C#) that attempts to add an additional event listener to a client side button that already might have an onclick event.
 
     
    