StringPrototype.anchor(Object, Object) Methode

Definition

Konvertiert das angegebene Objekt in Text, der in Ankertags eingeschlossen ist, und gibt dem Ankerelement das angegebene Namensattribute.

Diese API unterstützt die Produktinfrastruktur und ist nicht für die direkte Verwendung aus Ihrem Code gedacht.

public:
 static System::String ^ anchor(System::Object ^ thisob, System::Object ^ anchorName);
[Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.String_anchor)]
public static string anchor(object thisob, object anchorName);
[<Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.String_anchor)>]
static member anchor : obj * obj -> string
Public Shared Function anchor (thisob As Object, anchorName As Object) As String

Parameter

thisob
Object

Das Objekt, auf das diese Methode ausgeführt wird.

anchorName
Object

Das Name-Attribut des Anchor-Elements.

Gibt zurück

Eine Zeichenfolge im Formular "<A NAME=""++"</A>"anchorName+"">"+thisob.

Attribute

Gilt für:

Weitere Informationen