Implemented in | Navigator 4.0, Netscape Server 3.0 |
import objectName.name1, objectName.name2, ..., objectName.nameN
import objectName.*
objectName
parameter is the name of the object that will receive the imported names. For example, if f
and p
have been exported, and if obj
is an object from the importing script, thenimport obj.f, obj.pmakes
f
and p
accessible in the importing script as properties of obj
.
Typically, information in a signed script is available only to scripts signed by the same principals. By exporting (using the export
statement) properties, functions, or objects, a signed script makes this information available to any script (signed or unsigned). The receiving script uses the import
statement to access the information.
export
Last Updated: 10/31/97 12:29:59