StringPrototype.anchor(Object, Object) Metodo

Definizione

Converte l'oggetto specificato in testo racchiuso tra tag di ancoraggio e assegna all'elemento di ancoraggio l'attributo del nome specificato.

Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice.

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

Parametri

thisob
Object

Oggetto su cui agisce questo metodo.

anchorName
Object

Attributo del nome dell'elemento di ancoraggio.

Restituisce

Stringa nel formato "<A NAME=""++"</A>"anchorName+"">"+thisob.

Attributi

Si applica a

Vedi anche