title: CSS/JavaScript: Make element top-most z-index/top-most modal element
body: <p>I would like to make an element (e.g. a <code>&lt;div&gt;</code>) be the top-most layer on the page.</p>
  
  <p>My assumption is that the only way I can do this is to specify that the element has a <code>style="z-index:"</code> value that is the maximum the browser allows (int32?).</p>
  
  <p>Is this correct?</p>
  
  <p>Instead, would it be possible to somehow get the element's <code>z-index</code> whose is highest, and make this <code>&lt;div&gt;</code>'s <code>z-index</code> the <code>[highest element's value] + 1</code>? For example:</p>
  
  <pre><code>$myDiv.css("z-index", $(document.body).highestZIndex() + 1);
  </code></pre>
  
  <p>How do modal JavaScript "windows" work?</p>