I have the following method I want to run on a onclick event:
function dostuff(evt) {
var currentTarget = evt.currentTarget;
// do more stuff
}
On my link, I add the onclick event the following way:
link.Attributes.Add("onclick", "dostuff()");
However, then the evt parameter is null in my above example. I want to parse the click event to the JavaScript function, so I can get the currentTarget, srcElement etc.
How do I add that on my onclick event?