load html file as string vanilla 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);
});