HTMLAreaElement: thuộc tính coords
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
Thuộc tính coords của giao diện HTMLAreaElement là một chuỗi phản ánh thuộc tính coords của phần tử <area>.
Giá trị
Một chuỗi.
Ví dụ
js
const area = document.getElementById("imageArea");
console.log(area.coords);
area.coords = "0,0,82,126";
Đặc tả kỹ thuật
| Thông số kỹ thuật |
|---|
| HTML> # dom-area-coords> |