HTML DOM
HTMLBaseElement 接口包含一份 HTML 文件的基础 URI 设定,该对象继承了所有 HTMLElement 接口中定义的方法与属性。
属性
继承了其父级 HTMLElement 的所有属性。
- HTMLBaseElement.href
- : 映射自 String HTML
href特性,包含了当前文档中所有相对 URL 地址的基准 URL。
- : 映射自 String HTML
- HTMLBaseElement.target
- : Is a String that reflects the
targetHTML attribute, containing a default target browsing context or frame for elements that do not have a target reference specified.
- : Is a String that reflects the
方法
没有特殊的方法,继承了其父级 HTMLElement 的所有特性。
规范
浏览器兼容性
参见
- 实现了该接口的 HTML 元素:base
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
