How can I create client script for web forms?

How can I create client script for web forms? it’s working only with desk