support old attrs onclick and ondblclick for good backward compatibility