NotRestoredReasons: id property

Khả dụng hạn chế

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

Thuộc tính chỉ đọc id của giao diện NotRestoredReasons trả về một chuỗi đại diện cho giá trị thuộc tính id của <iframe> chứa tài liệu (ví dụ <iframe id="foo" src="...">).

Giá trị

Một chuỗi.

Nếu tài liệu không ở trong <iframe> hoặc <iframe> không có id, id sẽ trả về null.

Ví dụ

Xem Theo dõi lý do chặn bfcache để biết ví dụ.

Thông số kỹ thuật

Thông số kỹ thuật
HTML
# dom-not-restored-reasons-id

Tương thích trình duyệt

Xem thêm