28.5. Executing programs at server and client

We saw above that a web page may contain a script which is executed by the client's browser:

<SCRIPT type = “text/javascript”> … the script … </SCRIPT>

It is also possible for an HTML page to contain a script to be executed at the server side:

<SERVER type = “text/javascript”> … the script … </SERVER>

The result of executing the script, but not the script itself, is sent to the client along with the rest of the document. This facility might be used to personalize a page by inserting a 'welcome back' string before returning a page to a registered client. Figure 28.2 shows server-side and client-side script execution.

We also saw in Section 28.4 that forms may be sent for users to fill in either embedded ...

Get Operating Systems: Concurrent and Distributed Software Design 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.