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"); }
Charlie has over a decade of experience in website administration and technology management. As the site admin, he oversees all technical aspects of running a high-traffic online platform, ensuring optimal performance, security, and user experience.
























