Scroll To Top

Enter a query to search our site. Note that you can use "*" and "?" as wildcards. Enclosing more than one word in double quotes ("CSS Layout") will search for the exact phrase.

PVII Knowledge Base

1. Select a product ...
2. Select category ...
3. Search the Knowledge Base...

Question #304

In Drop Menu Magic (DMM) is there a way to assign the target attribute? so the link will open in a new window, or the link will open the page in a different frame.

The Answer

Prepared Jul. 2013 by Gerry Jacobsen, PVII

There is no support for the target attribute in the Drop Menu Magic (DMM) user interface so you will need to assign the target attribute manually.

To assign the target attribute:

1. In Dreamweaver, click on the link in the menu, if it is a submenu link that is not visible in Design View then switch to Code View and click within the link (x)html markup.

2. Locate the Target drop down selector in the Properties Panel, select the target that you want:

(a) To open the linked page in a new browser window choose "_blank", the link will now look like this:

<li><a href="myPage.htm" target="_blank">Menu Item</a></li>

_blank - opens the page in a new browser window

(b) To target a frame within a frameset, select the name if the frame, the menu link will look like this:

<li><a href="myPage.htm" target="mainFrame">Menu Item</a></li>

3. Repeat for any other menu links that you wish to target.

Back to the questions list