### TargetFrame

The TargetFrame property specifies the target frame into which the link should be loaded. This property fulfills the same function as the TARGET parameter in an HTML anchor statement.

###### Syntax

AdRotator.TargetFrame = frame

###### Parameters

frame
  Specifies the name of the frame in which to display the advertisement. This parameter can also be one of the HTML frame-keywords, such as _TOP, _NEW, _CHILD, _SELF, _PARENT, or _BLANK. The default value is NO FRAME.

###### Example

The following example displays the advertisements in the frame `AdFrame`.

--- AdRot_TargetFrame.asp ---

    <%
     Set ad = Server.CreateObject("MSWC.AdRotator")
     ad.TargetFrame = "target=_TOP"
    %>
    <%= ad.GetAdvertisement("/ads/adrot.txt") %>

###### See Also

Border, Clickable

© 1997-2001 Microsoft Corporation. All rights reserved.