Is it possible to define a varible as the contents of an external text file?
Example:
function getfile() {
var textfromfile = (contents of http://example.com/plain.txt);
}
Plain.txt is one line and not particlaly long.
Because I am using this for a chrome extension I am not allowed to use php - Is there an easy way to do this in Javascript?