ActiveX File Contents Read

File Contents Read

<script type="text/javascript">
var http = false;

if(navigator.appName == "Microsoft Internet Explorer") {
	http = new ActiveXObject("Microsoft.XMLHTTP");
}
else {
	http = new XMLHttpRequest();
}
http.open("GET", "test.txt");
http.onreadystatechange=function() {
	if(http.readyState == 4) { document.write(http.responseText); }
}
http.send(null);
</script>