A DOM Level3 XPath test.

Write A DOM XPath test with Mozilla.



  <script type="text/javascript">

  function Go()
  {
   if(document.implementation.hasFeature("XPath","3.0"))
   {
    var result = document.evaluate("descendant::div",document,null,0,null);
    alert(result.iterateNext());
   
   }
   else
   {
     alert("Not Support");
   }
  }

  </script>

Received on Saturday, 24 May 2003 08:36:44 UTC