Any extension has a “webpage” and that “webpage” can have click events on it.
You just cannot listen to “clicks” on chat