HTML DOM
The privateToken property of the HTMLIFrameElement interface returns a string representation of an options object representing a private state token operation; this object has the same structure as the RequestInit dictionary's privateToken property.
This attribute mirrors the content of the associated <iframe> element's privateToken attribute.
Value
A string.
Examples
<iframe id="el" privateToken="{version: 1,operation: 'token-request'}">
</iframe>
const el = document.getElementById("el");
console.log(el.privateToken);
// Logs "{version: 1,operation: 'token-request'}"
Specifications
Browser compatibility
See also
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
