Help with using Web Form

Hi, can someone help me with Web Form.

How can I add javascript?

Where should I add file with javascript logic?

Maybe I should run special commands for activating this logic?

Thanks for your advises.

Here you can introduce yourself to the web forms world:
Web Forms

And also you might want to check how is done in ERPNext:
Job Application

Good luck!