Answers for "load file javascript"

10

load js file

<script type="text/javascript" src="path-to-javascript-file.js"></script>
Posted by: Guest on March-08-2020
-1

javascript load content from file

//with JQuery

jQuery.get('http://localhost/foo.txt', function(data) {
    alert(data);
});
Posted by: Guest on December-17-2020

Browse Popular Code Answers by Language