The syntax of a client-side action is as follows.
Notice that CSA is totally independent of ZK event listeners, though they might have the same name, such as onFocus. The differences include:
CSA executes at the client side and takes place, before ZK event listener is called at the server.
CSA could register to any event that your targeting browsers allow, while ZK supports events only list in the Events section.