Setting a default target for hyperlinks

When you create a hyperlink, you can specify that its destination be opened in a particular window or frame. This window or frame is called the link’s target. But it is also possible to set a default target for all the links in a document. If you do so, any link that does not have its own specified target will open in the target specified for the document.

To set a default target for the hyperlinks in a document
  1. On the Document menu, go to Property, click Document, and then click the General tab.
  2. In the Default target box, type the name of a window or frame.

Four special targets can be selected if you click the triangle on the Default target box:

_blank

Links will open in a new window.

_parent

If the current document is part of a frameset, its links will open in the frameset’s parent containerThe element, frame, or window that immediately contains the current element., replacing the frameset. The parent is usually the browser window, but if the frameset is being displayed in a frame of another frameset, then the parent is the containing frame in the higher-level frameset.

_self

Links will open in the current window (or frame, if the document is part of a frameset).

_top

Links will open in the current window (replacing the frameset, if the document is part of a frameset).

To override the default target for a specific hyperlink
  1. Double-click the hyperlink.
  2. In the Target box, enter the name of a window or frame. To select a frame visually, click Namo Web Editor button browse target frame Setting a default target for hyperlinks (Select Target Frame).

Namo Web Editor icon note Setting a default target for hyperlinksYou can only set the default target to a particular window if the window has a name. In general, only windows that are created by scripts have names. Therefore, only a window created by a script can be a default target. One way to create a named window to use as a default target is to use a script that creates a new window as soon as the current document is opened. You can do this using the Script Wizard’s Pop-up window script.

Related topics

Setting a link’s target window or frame

About frames and framesets

Setting a frame’s default target

Setting a default target for hyperlinks