- JavaScript Through the Ages
- What's JavaScript Good For?
- Creating Our First Script
- Dissecting Our First Script
- Viewing Script Errors
- Server-Side JavaScript
- Working with Browser Objects in JavaScript
- Browser Object Properties, Methods, and Events
- Handling Cross-Browser Programming Issues
- JavaScript Resources You Should Know About
Server-Side JavaScript
JavaScript is even becoming available on web servers these days, not just in web browsers. Only a few web servers support server-side JavaScript at the moment, but their number is growing. To embed JavaScript to be run on the web server in a web page, you use the <SERVER> element.
This element holds server-side JavaScript code, which is code that runs on the server. For example, here's how you would display a server's Internet address in a web page if server-side JavaScript is enabled:
<HTML> <HEAD> <TITLE> Server-Side JavaScript </TITLE> . . . </HEAD> <BODY> . . . Hello - your server's address is <SERVER> write(request.ip) </SERVER> . . . </BODY> </HTML>
You can find Netscape's documentation for server-side JavaScript at http://developer.netscape.com/docs/manuals/index.html?content=javascript.html.