hi

what's wrong with this code? it seems to load the text file ok, but it won't display it:
Code:
<script type="text/javascript"> 
var client = new XMLHttpRequest(); 
client.open('GET', 'resources/text/test.txt'); 
document.write(client.responseText); 
</script>
thanks