A hyperlink in a frameset may open a new window to display the linked content in Internet Explorer 6 (890078)
The information in this article applies to:
- Microsoft Internet Explorer (Programming) 6.0
- Microsoft Internet Explorer (Programming) 6 (SP1)
SYMPTOMSIn 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.
RESOLUTIONInstead 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 "More Information" section. <html>
<body>
<a href="link1.htm" onclick="parent.frames('data1').location.href=this.href;return false;" >link1-htm </a>
<a href="link2.htm" onclick="parent.frames('data1').location.href=this.href;return false;">link2-htm </a>
<a href="YourPDF.pdf" onclick="parent.frames('data1').location.href=this.href;return false;">link4-PDF </a>
</body>
</html>
Modification Type: | Minor | Last Reviewed: | 5/18/2005 |
---|
Keywords: | kbtshoot kbprb KB890078 kbAudDeveloper |
---|
|