How To Use VBScript to Control the Contents of Another Frame (156315)
The information in this article applies to:
- Microsoft Visual Basic, Scripting Edition 1.1
- Microsoft Visual Basic, Scripting Edition 2.0
- Microsoft Internet Explorer (Programming) 3.0
- Microsoft Internet Explorer (Programming) 3.01
- Microsoft Internet Explorer (Programming) 3.02
- Microsoft Internet Explorer (Programming) 4.0
- Microsoft Internet Explorer (Programming) 4.01
This article was previously published under Q156315 SUMMARY
This article describes three methods for using Visual Basic, Scripting
Edition, to alter the contents of another frame in the currently displayed
frameset. Following are the three methods:
- Locate the frame and write to its document object directly.
- Change the HREF that the frame displays using LOCATION.HREF.
- Change the HREF that the frame displays using NAVIGATE.
NOTE: All of these methods involve replacing what may already be displayed
on a frame. If you want to replace just a portion of what is displayed,
then you have to use an ActiveX control, which is placed on that page and
designed for that purpose.
Also, please note that in Internet Explorer 4.0x, you cannot script across
frames for pages that are on separate domains. For additional information,
please see the following article in the Microsoft Knowledge Base:
167796 PRB: "Permission Denied" When Scripting Across Frames"
Modification Type: | Major | Last Reviewed: | 10/8/2003 |
---|
Keywords: | kbFAQ kbScript KB156315 |
---|
|