title: Element search using some kind of node number in DOM Tree
body: <p>I am looking for a recursive search strategy that JavaScript can offer (JQuery also welcome). Right now I can look for an element if I have its id, className or tagName known, or I can also find though other criteria that are based on css properties and element index in parent node. </p>
  
  <p>So basically what I am trying to accomplish is search for a node based on its x,y position (this is easy part), then store some kind of reference to this node in memory (outside JavaScript code) and later re-use that reference (maybe this reference is a node number in dom tree) for locating the same element again. </p>
  
  <p>In this HTML page, elements wont have any id, class name.</p>
  
  <p>How can I get a serializable reference to any arbitrary element in DOM?</p>
  
  <p><strong>EDIT</strong>
  I am working on android's webview where at first Java code invokes JavaScript routines and it gets element (number I am looking for) and in later part of java code it pass that element number to javascript again for locating the same element. </p>