StringPrototype.anchor(Object, Object) Método

Definición

Convierte el objeto especificado en texto entre etiquetas de anclaje y proporciona al elemento de anclaje el atributo de nombre especificado.

Esta API admite la infraestructura de producto y no está pensada para usarse directamente en el código.

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

Parámetros

thisob
Object

Objeto en el que actúa este método.

anchorName
Object

Atributo name del elemento delimitador.

Devoluciones

Cadena con el formato "<A NAME=""+anchorName+"">"+thisob+"</A>".

Atributos

Se aplica a

Consulte también