pages for your website. To demonstrate the use of the Open Browser Window behavior, follow these steps: 1. Reopen the page to which you've been adding your Button form objects. If you've accidentally closed it without saving, open the sample.htm file included with the files in this project. 2. Place your cursor just after the previous Visit Macromedia button and press Enter. 3. Insert a new Button form object by clicking the Button icon located in the Forms category of the Insert bar. Give the new Button the text label Open Macromedia and change the Action to None to prevent the form from submitting or resetting. 4. With the Button selected, choose the Open Browser Window behavior from the Add (+) menu in the Behaviors panel. The Open Browser Window dialog appears, similar to Figure 10.17. Figure 10.17. Use the Open Browser Window dialog to customize properties for the pop-up window. 5. The Open Browser Window dialog allows you to customize numerous properties including the URL to display, the width and height of the window to open the URL in, and a simple name to assign to the pop-up window. You can also customize various attributes including whether or not scrollbars should be added, whether or not to allow the user to resize the browser window after it's been opened, and so on. For our purposes, enter the URL http://www.macromedia.com in the URL to Display text box and assign the dimensions 400 for width and 400 for height. When you've finished, click OK. As expected, the onClick event is assigned to the Button form object. Of course, if we really wanted to annoy our users, we could change that event to onLoad. That alteration would cause the Open Browser Window action to execute when the page is loaded as opposed to when the user physically clicks the button. In an effort to maintain retention rates among our users, we'll keep the onClick event so that our users have to click for themselves. To preview the finished product, save your work and preview the page in the browser by selecting the Preview in Browser option from the Document bar (or by pressing F12). As you can see from Figure 10.18, clicking the button opens the Macromedia website in a small 400 by 400 window. Figure 10.18. The Macromedia website appears in a small browser window. [View full size image] Notice that the pop-up window is fairly plain and doesn't allow for much interaction in terms of scrolling to see all the website content or even resizing the window to make it bigger. However, the Open Browser Window dialog allows you to customize various attributes including setting check boxes for scrollbars and resize handles. In fact, the Open Browser Window dialog supports the following functionality (accessible by double-clicking the behavior in the Behaviors panel): URL to display: In this text box, enter the URL of the site you'd like to display in the pop-up window. Window width and height: Enter the width and height (in pixels) at which you want the pop-up window to initially display in these text boxes. Attributes: Use these check boxes to set whether or not you want to display the navigation toolbar, a location toolbar, a status bar, a menu bar, enable scrollbars, or even provide resize handles. For our example, let's check the Scrollbars as Needed option and the Resize Handles option. Window name: Enter a value in this text box to uniquely name the browser window. This value is optional.