EnhEvent.TargName

[This is preliminary documentation and subject to change.]

The TargName method returns the name of the navigation target specified in the event.

Syntax

[ sTargName = ] object.TargName
 

Parts

object
Object expression that resolves to an EnhEvent object.
sTargName
String that receives the name of the navigational target. This is the name assigned to a set of <FRAME>, <IFRAME>, <SPAN>, or <DIV> tags.

Remarks

This property only returns a string for Nav trigger events. Other types of events will always return an empty string (""). The value returned is that specified in the targetName parameter of the Nav trigger.

For example, if the enhancement stream contained the Nav trigger event, 00:20:05.0 trigger ("2 <MyEnh.htm>[targ:Left]");, your application could use TargName to extract the target name, Left, from the event.

QuickInfo

  Windows NT: Unsupported.
  Windows: Requires Windows 98.
  Windows CE: Unsupported.
  Header: Declared in stream.idl.
  Import Library: Included as a resource in stream.dll.
  Unicode: Yes.

See Also

Nav trigger, EnhEvent.PageName

Examples

The following example retrieves the name of the navigation target from an event and stores it in the variable sTarg.

'Declare a string variable to receive the target name.
Dim sTarg As String
 
'Retrieve the target name from an event.
sTarg = e.TargName