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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.