When JavaScript is built into a web browser, the interpreter is an integral part of the application. However, it is technically possible to separate the JavaScript interpreter and provide it as a service that is available to all applications in the system. This seems to be the way that JScript is going on the Windows platform. Whether the browser-based script environment is truly sharing the Windows Script Host facilities may depend on the browser version being used.
A web browser based interpreter will execute JavaScript that is provided in the following containers:
* An HTML page
* A JavaScript include (.js file)
* A Java archive (.jar file)
To add JavaScript to your HTML pages, you need to add <SCRIPT> tags as containers for the script source text.
See also: | .jar, .java, .js, <SCRIPT>, Host environment, HTML, HTML file, iCab, Image object, Image(), Image.Class, Internet Explorer, Netscape Navigator, OpenTV, Opera, Platform, WebTV |
Prev | Home | Next |
.web | Up | Web scripting |
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. |