return content from file js code example
Example: javascript load content from file
//with JQuery
jQuery.get('http://localhost/foo.txt', function(data) {
alert(data);
});
//with JQuery
jQuery.get('http://localhost/foo.txt', function(data) {
alert(data);
});