My code is:
<meta charset="UTF-8">
<style>body{width=100%;height=100%,margin=0,background-color=black,color=white}</style>
<script>
xhr=new XMLHttpRequest()
name=prompt("Enter your nickname please.")
new File([name+" has connected."],"chat4.js")
xhr.open("GET","http://nordostein.esy.es/chat4.js")
xhr.send()
setInterval(function(){
eval(xhr.responseText)
xhr.open("POST","http://nordostein.esy.es/chat4.js")
xhr.send()
},1)
onkeydown=function(e){
new File([name+" says "+prompt("Enter your message.")],"chat4.js")
}
</script>
And the error:
XMLHttpRequest can not load link ? No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin ' link ' is therefore not allowed access.