## Pop-up windows

This section of actions causes a new window to be displayed above the main browser window. Pop-up windows are useful for displaying subsidiary information relating to the main page, such as a larger version of a graphic.

Note: You cannot preview the pop-up window actions using Freeway’s built-in Preview mode. Instead, open the File menu and choose a browser from the Preview in Browser submenu.

### To display a new window when the user clicks a graphic

The Link to New Window action opens a page in a pop-up window when the user clicks a graphic item.

- Create a new page containing the content you want to display in the pop-up window.
- Select a graphic item on the original page, or an HTML item with a pass-through graphic imported into it.
- Open the Item menu and choose Link to New Window from the Actions submenu.
- In the Actions palette specify a name for the window, the page to be displayed in the window, the width and height, whether the toolbar and scrollbars should be displayed, and whether it should be resizable:

When you click the graphic a pop-up window will be displayed showing the content of the window you specified:

You can use the Self Closing Pop-up Window action to make the window close automatically; see To make a pop-up window close automatically.

### To define a text link to a pop-up window

The Text Link to New Window action opens a new window when the mouse is clicked on a link.

- Create a new page containing the content you want to display in the pop-up window.
- Place the insertion point in text in an HTML item on the original page.
- Open the Insert menu and choose Text Link to New Window from the Action Item submenu.
- Click outside the HTML item, then click the text link action to select it.

The parameters of the text link action are displayed in the Actions palette.

- Select the name of the page you want to display in the pop-up from the Page pop-up menu.

The other options allow you to specify whether the window has a toolbar and scrollbars, and whether it is resizable:

Setting Use link to Yes allows you to make the text link action into a hyperlink, to redirect the user to a different page in the main window as well as displaying the pop-up window.

When you click the text link a pop-up window will be displayed:

### To display a picture in a pop-up window

The Pic to New Window action is similar to the Link to New Window action except that the pop-up window displays a specified image. This is useful for allowing the visitor to display a larger version of a graphic on the page.

- Select the graphic item containing the original image.
- Open the Item menu and choose Pic to New Window.
- In the Actions palette select the image to be displayed in the pop-up window.
- Specify the width and height of the window, whether the toolbar and scrollbars should be displayed, and whether it should be resizable:

When you click the graphic the specified image will be displayed in a pop-up window:

### To display a pop-up window

Thw Pop-up Window action automatically displays a pop-up window when the user browses to a page. This can be used to display an advertising message, warning, or provide a navigation tool for use on the site:

- Create a new page containing the content you want to display in the pop-up window.
- Switch to the page which you want to display the pop-up window.
- Open the Page menu and choose Pop-up Window from the Actions submenu.
- In the Actions palette select the page you have defined for the pop-up window, specify the initial position for the pop-up window in the Left and Top fields, and the size of the pop-up window in the Width and Height fields.
- Use the Toolbar, Scrollbars, and Resizable menus to specify whether a toolbar and scrollbars should be displayed, and whether it should be resizable.
- In the Delay field specify the time delay after which the pop-up window should be displayed, in seconds.

### To make a pop-up window close automatically

- Select the page containing the content to be displayed in the pop-up window.
- Open the Page window and choose Self Closing Pop-up Window from the Actions submenu.

The action has no parameters but simply causes the pop-up window to be closed when the user navigates to a new page in the browser, or closes the browser window:

Contents