target Property

Microsoft FrontPage Visual Basic

target Property

Sets or returns a String that represents the window or frame in which to display the contents of a hyperlink. Corresponds to the target attribute.

expression.target

expression    Required. An expression that returns one of the objects in the Applies To list.

Remarks

The target property can be one of the following String values

_blankLoads the linked document into a new blank window. This window is not named.
_parentLoads the linked document into the immediate parent of the document the link is in.
_searchLoads the linked document into the browser's search pane. Available in Internet Explorer 5 or later.
_selfLoads the linked document into the same window the link was clicked in (the active window).
_topLoads the linked document into the topmost window.
nameLoads the linked document into the named frame or window.

Example

The following example loads the page referenced in the first hyperlink in the active document in a new browser window.

    Dim objLink As FPHTMLAnchorElement

Set objLink = ActiveDocument.all.tags("a").Item(0)

objLink.target = "_blank"