devxlogo

Navigating to a Frame Using the Visual InterDev 6 Scripting Object Model

Navigating to a Frame Using the Visual InterDev 6 Scripting Object Model

The Visual InterDev 6 Scripting Object Model provides the navigateURL method for navigating to another Web page based on an event such as a button click. Many people are stumped when they need to navigate to a page that is within a frameset. The SOM’s PageObject script object provides navigateTarget for this purpose. Just identify the name of the target as its value. Here’s some sample code in JavaScript. Don’t forget to drop the PageObject script object on your page first so that you’ll get the benefit of VID’s IntelliSense.

 function Button1_onclick() { thisPage.navigateTarget=window.parent.frames.tmain; thisPage.navigateURL("inside.htm"); }
See also  How to Avoid Money Transfer Scams  
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist