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.



Inside Javascript
Inside JavaScript
ISBN: 0735712859
EAN: 2147483647
Year: 2005
Pages: 492
Authors: Steve Holzner

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net