function RegisterOnDoubleClickEvent(attr, fn) {
var e = document.getElementById(attr);
var f = "var doubleclick=function() { " +
fn + "(); " +
" };";
eval(f);
// Attach to double click event
e.attachEvent("ondblclick", doubleclick, false);
}
Thereafter all you need to do to register an OnDoubleClick event is to pass the following function call:
Thereafter all you need to do to register an OnDoubleClick event is to pass the following function call:
RegisterOnDoubleClickEvent("attribname", "functionname");
No comments:
Post a Comment