Accessibility
 
Home > Products > Dreamweaver > Support > Using Behaviors
Dreamweaver Icon Macromedia Dreamweaver Support Center - Using Behaviors
Open Browser Window

Use the Open Browser Window action to open a URL in a new window. You can specify the properties of the new window, including its size, attributes (whether it is resizable, has a menu bar, and so on), and name. For example, you can use this behavior to open a larger image in a separate window when the visitor clicks a thumbnail image; with this behavior, you can make the new window the exact size of the image.

To use the Open Browser Window action:

1 In Dreamweaver, select an object and open the Behaviors panel.
2 Click the Plus (+) button and choose Open Browser Window from the Actions pop-up menu.
The Open Browser Window dialog box appears.

3 Click Browse to select a file, or enter the URL you want to display.
4 Set any of the following options:
Window Width specifies the width of the window in pixels.
Window Height specifies the height of the window in pixels.
Navigation Toolbar is the row of browser buttons that includes Back, Forward, Home, and Reload.
Location Toolbar is the row of browser options that includes the location field.
Status Bar is the area at the bottom of the browser window in which messages (such as the load time remaining and the URLs associated with links) appear.
Menu Bar is the area of the browser window (Windows) or the desktop (Macintosh) where menus such as File, Edit, View, Go, and Help appear. You should explicitly set this option if you want visitors to be able to navigate from the new window. If you do not set this option, the user can only close or minimize the window (Windows) or close the window or quit the application (Macintosh) from the new window.
Scrollbars as Needed specifies that scroll bars should appear if the content extends beyond the visible area. If you do not explicitly set this option, scroll bars do not appear. If the Resize Handles option is also turned off, visitors have no easy way of seeing content that extends beyond the original size of the window. (Though they may be able to make the window scroll by dragging off the edge of the window.)
Resize Handles specifies that the user should be able to resize the window, either by dragging the lower right corner of the window or by clicking the maximize button (Windows) or size box (Macintosh) in the upper right corner. If this option is not explicitly set, the resize controls are unavailable and the lower right corner is not draggable.
Window Name is the name of the new window. You should name the new window if you want to target it with links or control it with JavaScript. This name cannot contain spaces or special characters.
5 Click OK.
6 Check that the default event is the one you want.
If it isn't, choose another event from the pop-up menu. If the events you want are not listed, change the target browser in the Show Events For pop-up menu.

To Table of Contents Back to Previous document Forward to next document