The information in this article applies to:
SYMPTOMSIf you have a page with frames, using Hyperlink.NavigateTo to navigate to a UserDocument in a frame that contains an HTML page causes the UserDocument to be opened in a new instance of Internet Explorer. RESOLUTIONSet the SRC property of the frame element directly instead of using Hyperlink.NavigateTo. STATUSMicrosoft has confirmed this to be a bug in Microsoft Internet Explorer (Programming) versions 4.0, 4.01, 4.01 SP1. This bug was corrected in Microsoft Internet Explorer 5. MORE INFORMATIONSteps to Reproduce BehaviorThe following HTML code creates a Web page that initially contains UserDocument1.vbd in the left frame and UserDocument2.vbd in the right frame. (UserDocument2.vbd doesn't do anything useful.)UserDocument1 contains a button that, when pressed, calls Hyperlink.NavigateTo to navigate to a new UserDocument in the right-hand frame. UserDocument1 also contains an edit box to accept a URL. Typing a URL in the edit box and pressing a command button, causes the URL to be loaded in the right-hand frame. After the URL is loaded in the right-hand frame, pressing the button that loads a new UserDocument, causes that UserDocument to be loaded in a new instance of Internet Explorer.
Here is the Visual Basic source code that implements the UserDocument1.vbd:
ResolutionSetting the SRC property of the frame element directly allows you to work around this problem and still obtain the same result.Here is the Visual Basic code to implement this resolution:
This source code first gets a reference to the window that is containing the frameset. Then it gets a reference to the document. Finally, it gets a reference to the frame element associated with "RightFrame." Then it sets the SRC property to the name of the VBD or the URL. Additional query words:
Keywords : kbIE400bug kbIE401bug kbIE401sp1bug kbIE500fix |
Last Reviewed: April 9, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |