Server-side scripting is accomplished by enclosing the JavaScript code inside <SERVER> tags in the HTML. These will be parsed out as the pages is processed and sent onwards. They will be replaced by the output of the script enclosed in the tags.
The main difference is that where you might have used a document.write() method in the client side script, on the server side, you use a write() method.
If the <SERVER> tag remains intact and is forwarded in the document sent onwards to the browser, the browser should ignore it. However, this could give away much valuable information about the inside of the server and middle-ware. That could aid the wily hacker in an intrusion attack.
Prev | Home | Next |
nethelp: URL | Up | Netscape Navigator |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |