HTMLBaseElement 接口包含一份HTML文件的基础 URI设定,该对象继承了所有 HTMLElement 接口中定义的方法与属性。


继承了其父级 HTMLElement 的所有属性

映射自 DOMString  HTML href 特性,包含了当前文档中所有相对 URL 地址的基准URL。
Is a DOMString that reflects the target HTML attribute, containing a default target browsing context or frame for elements that do not have a target reference specified.


没有特殊的方法,继承了其父级 HTMLElement 的所有特性。


Browser compatibility

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support (Yes) 1.0 (1.7 or earlier) (Yes) (Yes) (Yes)
Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support (Yes) 1.0 (1.0) (Yes) (Yes) (Yes)

See also

  • HTML element implementing this interface: <base>