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