I have a Javascript program which use another javascript program : I want to call this JS file from my Javascript program. How can i do this without need of html ?
            Asked
            
        
        
            Active
            
        
            Viewed 78 times
        
    0
            
            
        - 
                    are your js files have same origin (located at the same domain) ? – RomanPerekhrest Jan 25 '16 at 19:06
- 
                    @RomanPerekhrest yes my files have same origin – ameni Jan 25 '16 at 19:07
- 
                    ok. Now you can explain what are you intending in "calling" one js file from another: do you want to load the content of external js script to your current js file OR you want just organize data exchange between two js files ? – RomanPerekhrest Jan 25 '16 at 19:13
- 
                    @RomanPerekhrest i have a javascript program, and some functions from my js program are implemented in other javascript files : so my js program need other js files and js librairies to be well executed – ameni Jan 25 '16 at 19:20
- 
                    Possible duplicate of [Include a JavaScript file in another JavaScript file?](http://stackoverflow.com/questions/950087/include-a-javascript-file-in-another-javascript-file) – piedar Jan 25 '16 at 19:52
1 Answers
0
            
            
        See the answer posted here:
How do I include a JavaScript file in another JavaScript file?
You could always just combine the files into one .js
 
    
    
        Community
        
- 1
- 1
 
    
    
        Kyle Burkett
        
- 1,375
- 12
- 28
