Chapter 11. VALIDATING FORMS, MASSAGING STRINGS, AND WORKING WITH SERVER-SIDE PROGRAMS

Web developers can add interactivity to their sites with code that runs on either the web browser or the webserver. JavaScript works inside web browsers, and everything we've seen so far adds interactivity to web pages by making the browser perform fancy JavaScript tricks. Web developers can also make their pages more interactive by using CGI scripts, Java servlets, .NET applications, and other scripting tools. Although the use of these tools is outside the scope of this book, it's important to know how JavaScript can be used to enhance these server-side programs.

One of the most common ways to use JavaScript along with server-side programs is as a form validator ...

Get The Book of JavaScript, 2nd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.