Packages
JavaScript 1.1+ Nav3+, NES2+ Syntax
Packages.packagename
Description
The Packages object is a built-in object that provides access to various Java packages within the browser. Each property of the Packages object refers to a JavaPackage object containing references to specific classes. Table 6.31 shows the default packages included in the Packages object.
Package | Description |
---|---|
java | Refers to the core Java classes |
netscape | Refers to a set of Netscape classes |
sun | Refers to the core Sun classes |
Example
Listing 6.200 shows how the Packages object is used. The user is provided with an input text box. When something is entered in the input box and the button clicked, the input is sent to the ...
Get Pure JavaScript now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.