title: tabIndex and Javascript popup window
body: <p>I have few element in my html page which has tabIndex attribute.</p>
  
  <p>Now I have a div based modal popup window opening from this page. I have few elements in this popup window which has tabIndex. </p>
  
  <p>Problem: When the user presses the tab, the focus is set to each elements in the popup window, after the last element in the popup got focus and still the user press tab the focus is going to the elements in the main page which I dont want.</p>
  
  <p>Is there any way to rotate the focus on elements in the popup window itself?</p>