www.fgks.org   »   [go: up one dir, main page]

Click to Rate and Give Feedback
Properties
 BaseHref Property
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

HTMLN/A
Scripting[ sURL = ] OBJECT.BaseHref

Possible Values

sURLString that receives the URL of the object.

The property is read-only. The property has no default value.

Remarks

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

  • If the object element is on a page containing a base element, then sURL takes the value of the base.href property.
  • If the object element is on a page with javascript, vbscript or about protocol URLs, then sURL 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, sURL takes the value of the page they are found on.

Standards Information

There is no public standard that applies to this property.

Applies To

OBJECT
Tags What's this?: Add a tag
Community Content
 
Add Community Content
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker
DCSIMG