You want to use the XMLHttpRequest Object. Only problem is that
Ah, I missed the synchronous part. Well, "nothing changed" doesn't tell us much. What is happening? Is any HTTP request being sent? If so, is the response correct? What other debugging steps have you taken?
Ah yes, this is one small example of why doing Ajax "by hand" is inadvisable. There are too many nuances and browser differences to re-invent the wheel when someone else has already solved all the problems.
yes I read that but as I said before, I can read the webpage. document.write(txt=req.responseText) at line 19 prints the content of the webpage. my question now is about document.write(xmlDoc.getElementsByTagName("a")) at line 35 which just print "object".