import : import « Global « JavaScript Tutorial






The import keyword allows a script to import properties, functions, and objects from a signed script that has exported the information.

<html>
    <body>
    <script language = "JavaScript">
    <!--
    // 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;
    -->
    </script>
    </body>
    </html>








8.5.import
8.5.1.import