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

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.

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

Applies To

Ad Rotator Component

See Also

Border, Clickable