Hi - I've added the following to my webpart:
this.attributes.add("onmousedown","bob()");
and this in Render():
this.attributes.addattributes(writer);
However, when I check the html for the page, the onmousedown attribute has been added to the webpart below mine so when I click on the webpart below, the function bob() is being called. Am I doing something wrong?