import (Statement)

Import some properties that have been exported from another execution context.


ECMAScript edition - 2
JavaScript - 1.2
JScript - 3.0
Internet Explorer - 4.0
Netscape - 3.0
JavaScript syntax:-import anObject.aFunction;
-import anObject.aProperty;
Argument list:aFunctionA function object to imprt
anObjectAn object that is exporting some property values
aPropertyA property value to import

ECMAScript edition 2 suggests this is a future extension. As of the third edition of the ECMAScript standard it is still denoted as a reserved word.

Navigator 4 anticipates that a future standard will endorse this capability and provides it anyway.

A layer might import a function exported by another layer so that they can exchange values or operate on one another.

The imported property name can include the wildcard asterisk character to match several properties.


See also:export, Same origin, Signed scripts


ECMA 262 edition 2 - section - 7.4.3

ECMA 262 edition 3 - section - 7.5.3