Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

HTMLBaseElement

 

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

属性

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

HTMLBaseElement.href
映射自 DOMString  HTML href 特性,包含了当前文档中所有相对 URL 地址的基准URL。
HTMLBaseElement.target
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 的所有特性。

Specifications

Specification Status Comment
WHATWG HTML Living Standard
HTMLBaseElement
Living Standard No change from latest snapshot, HTML5.1.
HTML5.1
HTMLBaseElement
Working Draft No change from HTML5
HTML5
HTMLBaseElement
Recommendation No change from Document Object Model (DOM) Level 2 HTML Specification.
Document Object Model (DOM) Level 2 HTML Specification
HTMLBaseElement
Recommendation No change from Document Object Model (DOM) Level 1 Specification.
Document Object Model (DOM) Level 1 Specification
HTMLBaseElement
Recommendation Initial definition.

Browser compatibility

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>

文档标签和贡献者

标签: 
 此页面的贡献者: pantao
 最后编辑者: pantao,