HTMLIFrameElement: privateToken property - Web APIs | MDN
Value
A string.
Examples
html
<iframe id="el" privateToken="{version: 1,operation: 'token-request'}">
</iframe>
js
const el = document.getElementById("el");
console.log(el.privateToken);
// Logs "{version: 1,operation: 'token-request'}"
Specifications
| Specification |
|---|
| Private State Token API # dom-htmliframeelement-privatetoken |