<class
home> <Jscript>
<back
next>
Client vs Server side
client
side vs. server-side javascript:
A. "client-side" JavaScript: embedded into html and interpreted by a
Web Browser
B. "server-side", or LiveWire JavaScript: creates server-based applications;
an alternative to CGI programs
Example of Client JavaScript Use
"Client-side JavaScript statements embedded in an html page can respond to
user events such as mouse-clicks, form input, and page navigation.
For example, you can write a JavaScript function to verify that users enter valid
information into a form requesting a telephone number or zip code.
Without any network transmission, the html page with embedded JavaScript can check
the entered data and alert the user with a dialog box if the input is invalid.
Example of Server-side JavaScript
* You can use JavaScript for creating server-based applications similar to CGI
programs
* connect to relational databases
* access file system on Web server