Name
TargetFrame —
objAdRot
.
TargetFrame =
strFrameName
Synopsis
Specifies the name of the frame into which the link represented by a clickable ad graphic will be loaded. It is functionally equivalent to setting the Target property of an anchor tag in HTML.
Parameters
-
strFrameName
A string value that represents the name of the frame into which you want the linked page loaded. You can this parameter to
_BLANK
,_CHILD
,_NEW
,_PARENT
,_SELF
, or_TOP
. These settings have exactly the same effect as setting theTARGET
property of an anchor tag.
Example
<% ' The following code demonstrates the creation of an ' Ad Rotator object and the subsequent setting of its ' TargetFrame property to _TOP. Assuming the ad graphic ' resides in a frame, this setting will cause the link ' to be loaded into the top frame. Dim objAdRot objAdRot = Server.CreateObject("MSWC.AdRotator") objAdRot.TargetFrame = "_TOP" %>
Notes
Just as when you set the TARGET
property of an
anchor tag, if you set the value of the TargetFrame property to a
nonexistent frame, the ad link will be loaded into a new window, as
if you'd set the TARGET
property to
_self
.
In addition to this example, see the full example at the end of this chapter.
Get ASP in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.