Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script language="javascript" type="text/javascript">
- file="http://1.1.1.1/mysite/files/test.html"
- var rawFile = new XMLHttpRequest();
- rawFile.open("GET", file, false);
- rawFile.onreadystatechange = function ()
- {
- if(rawFile.readyState === 4)
- {
- if(rawFile.status === 200 || rawFile.status == 0)
- {
- var allText = rawFile.responseText;
- document.getElementById("content_file").innerHTML=allText;
- }
- }
- }
- rawFile.send(null);
- </script>
Add Comment
Please, Sign In to add comment