Obiekt bazowy HTML DOM
Obiekt podstawowy
Obiekt Base reprezentuje element HTML <base>.
Uzyskaj dostęp do obiektu podstawowego
Możesz uzyskać dostęp do elementu <base> za pomocą getElementById():
Przykład
var x = document.getElementById("myBase");
Utwórz obiekt bazowy
Możesz utworzyć element <base> za pomocą metody document.createElement():
Przykład
var x = document.createElement("BASE");
Podstawowe właściwości obiektu
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 |
Standardowe właściwości i zdarzenia
Obiekt Base obsługuje również standardowe właściwości i zdarzenia .
Powiązane strony
Odniesienie HTML: HTML <base> tag