The back-quote substitutions operate much like you may have seen them work in command-line shells and Perl interpreters. The text enclosed inside the back-quotes is parsed out from the HTML and is then executed as JavaScript.
ASP provides a means of substituting the output of JavaScript code into a block enclosed in <% ... %> markers which does a similar thing.
This allows us to include fragments of JavaScript into an HTML page and expect them to be parsed server-side.
This is somewhat analogous to JavaScript entities but they operate at the client-side.
The server-side example wraps its result inside quote symbols so that the HTML tag attribute syntax is preserved intact.
<HTML> <BODY> <FORM> <INPUT TYPE="text" VALUE=`server.hostname;`> </FORM> </BODY> </HTML>
See also: | JavaScript entity, Netscape Enterprise Server |
Prev | Home | Next |
Background.src | Up | Bar object |
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. |