title: Have Links inside the frame open in same window
body: <p>Have a dropdown with a bunch of links alongwith <code>Open directly</code>, <code>Next</code> and <code>Previous</code> buttons on IE8.</p>
  
  <pre><code>var count = -1
  var total = 24
  
  function goToNext() 
  {
   count = parent.nav.openfile.file.selectedIndex
   count ++ 
   if  (count &gt; total)
  count = 0;
    parent.display.location= parent.nav.openfile.file.options[count].value
    parent.nav.openfile.file.selectedIndex = count
  }
  
  function goToPrevious() 
  {
    count = parent.nav.openfile.file.selectedIndex
    count --
    if  (count &lt; 0)
  count = total;
    parent.display.location=parent.nav.openfile.file.options[count].value
    parent.nav.openfile.file.selectedIndex = count
  }
  
  function LoadFirst() 
  {
   parent.display.location=parent.nav.openfile.file.options[0].value
  }
  
  
  function OpenDirectly() 
  {
    parent.display.location = parent.nav.openfile.file.options[parent.nav.openfile.file.selectedIndex ].value
  }
  </code></pre>
  
     
  
  <pre><code>&lt;FRAMESET  ROWS="45,*"&gt; 
  &lt;FRAME 
   BORDER="1"
   FRAMEBORDER="YES"
   MARGINHEIGHT="10" 
   MARGINWIDTH="10" 
   NAME="nav" 
   SCROLLING="NO" 
   SRC="/Slide/test.jsp"
  /&gt; 
  &lt;FRAME 
    BORDER="1"
    FRAMEBORDER="YES"
    MARGINHEIGHT="10" 
    MARGINWIDTH="10" 
    NAME="display" 
    ID="display"
    SCROLLING="AUTO" 
    SRC="/page.html"
   /&gt; 
   &lt;/FRAMESET&gt; 
  </code></pre>
  
  <p>Above is the code(test.jsp followed by the HTML code containing main frame and navigation frame - the navigation frame is navigation and all the links within it should open within the main frame) which gets called on click of these buttons to move forward, previous or load directly. The issue is that these links open in either new window or new tab but never in same window. Would highly appreciate if anyone provides any recommendations around the same.</p>