|
|
Q63 Is it possible to import a .js file from another .js file?
irt.org | Knowledge Base | JavaScript | Source | Q63 [ previous next ] Q63 Is it possible to import a .js file from another .js file?Within the import.html file:
Within the import1.js file:
Within the import2.js file:
Note for it to work test1() must be called whilst rendering the page. If you call it after the page has rendered then it might overwrite the current document. Feedback on 'Q63 Is it possible to import a .js file from another .js file?' |
-- div -->
|