BaseHref

Jump to: navigation, search

BaseHref



Summary

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


Applies to  ?

Needs Examples: This section should include examples.

Notes

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.

Syntax

Compatibility

Desktop

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic Support Unsupported
Unsupported
3
Unsupported
Unsupported

Mobile

Feature Android BlackBerry Chrome for mobile Firefox Mobile (Gecko) IE Mobile Opera Mobile Opera Mini Safari Mobile
Basic Support Unsupported
Unsupported
Unsupported
Unsupported
1
Unsupported
Unsupported
Unsupported

See also

Related pages (MSDN)

  • object

Attribution

This article contains content originally from external sources.

Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]