I’m new to Javascript, and I’m sort of stuck on this.
I have a XMLHttpRequest object which is connected to some link, and I can get the responseXML from it. Now, how would I get the value of the <title> tag, from the responseXML?
I found a way to do it with a regex, but, its very ugly, and I would rather not use it (it uses responseText).
I also cannot use jQuery, Prototype, etc.
If you have an XML response the property xhr.responseXML holds the XML document, so use the DOM API
In order to make it more cross-browser use