HTMLFieldSetElement: thuộc tính name
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since August 2016.
Thuộc tính name của giao diện HTMLFieldSetElement cho biết tên của phần tử <fieldset>. Nó phản ánh thuộc tính name của phần tử.
Giá trị
Một chuỗi đại diện cho tên của phần tử.
Ví dụ
js
const fs = document.querySelector("fieldset");
console.log(`Tên của phần tử: ${fs.name}`);
fs.name = "billing"; // đặt hoặc cập nhật tên của phần tử
Đặc tả kỹ thuật
| Specification |
|---|
| HTML> # dom-fe-name> |