support old attrs onclick and ondblclick for good backward compatibility

support old attrs onclick and ondblclick for good backward compatibility