I have a XHTML document received via Ajax.
How do I get content of <title> tag?
I tried invoking getElementsByTagName() on XHTML document, but error says variable referencing XHTML document doesn’t have getElementsByTagName() method.
I have a XHTML document received via Ajax. How do I get content of
Share
Assuming your XHTML is valid, you should be able to use responseXML from your XMLHttpRequest to get an XMLDocument representation of your markup.
Alternatively you could try creating a div, and setting the responseText as the div’s innerHTML.