August 1999
Intermediate to advanced
1488 pages
72h 53m
English
import
The import keyword allows a script to import properties, functions, and objects from a signed script that has exported the information.
Listing 6.145 shows how the import keyword is used to import multiple properties from another script.
<html> <body> <script language = "JavaScript"> <!–– Hide // imports the variables name, city and state from another script. // This makes those properties accessible to myObj. import myObj.name; import myObj.city; import myObj.state; // End Hide ––> </script> </body> </html> |
Read now
Unlock full access