I am stuck with as issue of accessing HTML element in IE using XPath in Javascript?
I already tried with selectNodes() method but its for XML only, it does not
work for XPath of HTML element.
document.setProperty("SelectionLanguage", "XPath");
var mydoc=document.loadXML(document);
var nodes=mydoc.selectNodes("//input[@name='action']");
But its not returning any element.
Can anyone suggest me how to access HTML element in IE by XPath using Javascript?
Any suggestion is appreciated.
-Thanks in advance.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…