title: Get ID of created OpenLayers Marker Box
body: <p>I have an OpenLayers map and I create boxes with <strong>OpenLayers.Marker.Box</strong> like this:</p>
  
  <pre><code>var bounds = new OpenLayers.Bounds(left, bottom, right, top);
  var box = new OpenLayers.Marker.Box(bounds);
  boxes.addMarker(box);
  </code></pre>
  
  <p>I need to get the ID of this box to add some functionality. But when I create the box, OpenLayers automatically adds a div ID like <strong>OpenLayersDiv135</strong>. Is it possible to get the box ID in my javascript right after it is created or even set the ID at creation time?</p>
  
  <p>EDIT:
  It's as simple as <strong>console.log(box.div.id);</strong></p>