Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript include a js file from another

// jQuery
$.getScript('/path/to/imported/script.js', function()
{
    // script is now loaded and executed.
    // put your dependent JS here.
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #include #js #file
ADD COMMENT
Topic
Name
1+8 =