In a web application I\'ve inherited at work which was written about 10 years ago I\'ve noticed the following code snippets repeatedly used:
According to MSDN, the:
for attribute:
Sets or retrieves the object that is bound to the event script.
event attribute:
Sets or retrieves the event for which the script is written.
Therefore, I presume as you have that you can drop the non-standard attributes and use the lines you added to get the element, and handle the mousedown event.