O'Reilly logo

Insider Power Techniques for Microsoft® Windows® XP by Austin Wilson, Scott Andersen, Geoff Winslow, Paul McFedries

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Scripting Example: Programming Internet Explorer

To give you a taste of the power and flexibility of Automation programming, this section shows you how to program a specific Automation server: Internet Explorer. You’ll see that your scripts can control just about everything associated with Internet Explorer:

  • The position and dimensions of the window.

  • Whether or not the menu bar, toolbar, and status bar are displayed.

  • The current URL.

  • Sending the browser backward and forward between navigated URLs.

Displaying a Web Page

To get started, we’ll show you how to use the InternetExplorer object to display a specified URL. You use the Navigate method to do this, and this method uses the following syntax:

InternetExplorer.Navigate URL, [Flags,] [TargetFrameName ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required