<< back to knowledgebase home
How to make links open in a new browser window (MM2)
Article Applies To:
MenuMachine 2 only
GoLive CS, CS2
Mac, Windows
Article ID: 000137
Category: Menu Editing Issues
Issue
If you have a link in a menu item and you would like to open the linked page in a new window, there are two ways to do this with MenuMachine 2.
Solution
Method A.
To open a linked page in a new browser window:
If you simply want the linked page to open in a new browser window and you don't need to control any attributes of the new window, follow these instructions:
- Open the menu in the MenuMachine 2 Menu Editor.
- Enter the link in the Link Field as usual using the pick-whip.
- Use the pull-down menu next to the Target field and choose _blank.
This will make the linked page open in a new browser window for all instances of the menu. You do not need to edit the menu in your pages.
Method B.
To open a linked page in a new browser window and control the attributes of the window:
If you want the linked page to open in a new browser window and you need to control any attributes of the new window such as the size, whether or not the window has scrollbars, a URL field, menus, can be resized etc., follow these instructions.
Note: If you choose to use this method, preferably you would set up the Head Action in a Component which contains an instance of the menu. If you place the Component on a page, the Head Action will also be placed in the page and you will not have to edit every page to link the Action to the menu.
- Open the page which contains the menu.
- Open the page (or Component) in Layout View.
- Use the disclosure triangle to reveal the Head section.
- Drag a Head Action from the GoLive Objects Palette > Smart Set into the Head section.
- Open the Actions Palette.
- With the Head Action selected, go to the Actions Palette and make sure the Event is set to On Call.
- Name the action. Do not use spaces or non-alphanumeric characters and don't start the action name with a number.
- From the Action pull-down menu, choose Open Window (it is in the set of actions called Link).
- Enter the URL for the page you want to open in the Link field.
- Enter _blank into the Target field.
- Set the Width and Height of the new window.
- You may need to enlarge the Actions Palette to see more options. Check or uncheck options as required.
- Open the menu in the MenuMachine 2 Menu Editor.
- In the Link field enter a # symbol.
- The Target field should be empty.
- Save and Close the menu.
- Place the menu in the page (or Component).
- Click on the menu and go to the Inspector. Click on the Actions tab.
- Select the menu item to which you gave the # link. You can now apply your Open Window action to one of the mouse events for that menu item - Mouse Over, Mouse Click or Mouse Out. You should see the name of your Head Action in the pull-down menus for the events. Apply the action to one of the events.
- Save the page and test in browsers. Edit the Head Action as required.
- If the menu is in a Component, place the Component on other pages in your site.
Note: If you place the menu in a Component and then place the Component in other pages, you will not be able to apply any of the other page-based features such as Frame Support or Highlighting. If you need to use those features and Actions, you will need to place a menu instance in each page and set up Head Actions in each page.
Last updated: September 25, 2006
This article has been viewed 8547 times.
Related articles