EN
Il contenuto non è disponibile nella lingua di destinazione, ma solo in inglese.
Questo argomento non è stato ancora valutato - Valuta questo argomento

basehref attribute | BaseHref property

Retrieves a string of the URL where the object tag can be found. This is often the href of the document that the object is in, or the value set by a base element.

Syntax

HTML<element basehref="p" ... >
JavaScript

p = object.BaseHref

Property values

Type: String

the URL of the object.

Remarks

Use the BaseHref property to resolve relative paths when locating an object. The following rules determine the resulting p.

  • If the object element is on a page containing a base element, then p takes the value of the base.href property.
  • If the object element is on a page with javascript or vbscript, or is about protocol URLs, then p takes the value of the current page's parent page URL. This applies to object.BaseHref property requests in iframe/ frame elements as well.
  • For all other object elements, p takes the value of the page they are found on.

See also

object

 

 

Send comments about this topic to Microsoft

Build date: 11/28/2012

Il documento è risultato utile?
(1500 caratteri rimanenti)

Aggiunte alla community

AGGIUNGI
Microsoft sta conducendo un sondaggio in linea per comprendere l'opinione degli utenti in merito al sito Web di MSDN. Se si sceglie di partecipare, quando si lascia il sito Web di MSDN verrà visualizzato il sondaggio in linea.

Si desidera partecipare?
© 2013 Microsoft. Tutti i diritti riservati.