Microsoft KB Archive/890078

= A hyperlink in a frameset may open a new window to display the linked content in Internet Explorer 6 =

Article ID: 890078

Article Last Modified on 5/18/2005

-

APPLIES TO


 * Microsoft Internet Explorer (Programming) 6.0
 * Microsoft Internet Explorer (Programming) 6 (SP1)

-





SYMPTOMS
In Microsoft Internet Explorer 6, a hyperlink that is displayed in a frameset may open a new window to display the linked content instead of displaying the linked content in the specified frame. This problem occurs more frequently when the following conditions are true:
 * You view a .pdf file in the browser.
 * You use the Back button in the browser together with a sequence of links.



RESOLUTION
Instead of using the Target attribute of the hyperlink, you can handle the onClick event and use the following Location.href code example. The Location.href code example replaces the Menu.htm code example that is mentioned in the &quot;More Information&quot; section. link1-htm   link2-htm   link4-PDF   



Steps to reproduce the problem
 Create a .pdf file that is named YourPDF. To do this, create a copy of any .pdf file that you have, and then rename the copy YourPDF.pdf. Create the following HTML (.htm) files. To do this, paste the code sample in a text editor such as Notepad, and then save the file by using the listed file name.   Repro.htm testing <frameset rows=&quot;62,*&quot; frameborder=&quot;NO&quot; border=&quot;0&quot;> <frame src=&quot;menu.htm&quot; name=&quot;menu&quot; scrolling=&quot;yes&quot; frameborder=&quot;yes&quot;> <frame src=&quot;bottom.htm&quot; name=&quot;data1&quot;> </li>  Menu.htm link1-htm </a> link2-htm </a> link3-PDF </a> </li>  Link1.htm link1 </li>  Link2.htm link2 </li>  Bottom.htm Bottom </li></ul> </li> In Internet Explorer, locate and then open the Repro.htm file.</li> Click the links in the following order: <ol style="list-style-type: lower-alpha;"> Click link1.</li> Click link2.</li> Click link3-pdf.</li> Click link1.</li> Click link2.</li> Click link3-pdf.</li></ol> </li> Click the Back button in Internet Explorer.</li> <li>Click link 1. A new window appears that contains the link 1 page.</li></ol>

If you continue to click the links in the Repro.htm file, the linked content always appears in this new window.

Keywords: kbtshoot kbprb KB890078

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.