iswariak Posted November 2, 2007 Report Share Posted November 2, 2007 Hi I tried to execute the xpath example given in w3schools in firefox. what should I do?Thanks. Link to comment Share on other sites More sharing options...
boen_robot Posted November 2, 2007 Report Share Posted November 2, 2007 IE is the only browser that uses this method to select nodes with XPath. And infact, as you can see, that's not even JavaScript. It's VBScript that only IE supports.To execute XPath in Firefox and Opera, but not in IE, you can use the document.evaluate() method, which will return a nodeList object containing the resulting nodes from the XPath expression given as the first argument. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now