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 theTARGETproperty 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.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access