The Base object represents an HTML <base> element.
You can access a <base> element by using getElementById():
You can create a <base> element by using the document.createElement() method:
Property | Description |
---|---|
href | Sets or returns the value of the href attribute in a base element |
target | Sets or returns the value of the target attribute in a base element |
The Base object also supports the standard properties and events.
HTML reference: HTML <base> tag
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!