Scripts add functionality to websites. They can be run client- or server-side, and can do some really heavy lifting in terms of making sites interesting and dynamic.
- Easy-to-learn, free or low-cost.
- Incredibly popular; wide-usage with community knowledgebase.
- Versatile. Basic JS can be used inline in HTML, and developing entire applications.
- Because the code executes on the client's computer, it can be a security risk.
- Interpreted differently across browsers; requires testing.
Common Gateway Interface (CGI)
Another way to add dynamic content to a site is through a CGI. CGI programs (or scripts) are the most common way for web servers to interact with users. These files are good for processing data sets, for example, like those used in forms and counters. CGIs can be made using many programming languages like Python, PERL, or Java.
- Work on a variety of servers.
- Can be written in nearly any language.
- Provides simple interfaces for the clients to interact with the web servers.
- Can be memory-intensive, especially on sites with high-level traffic.
- Creation is not entry-level; can require extensive programming knowledge to be effective.