JSFiddle - React, Tailwind, and code Playground
HTML
<iframe sandbox=" a b c "></iframe>
<pre id="log"></pre>
JavaScript
document.querySelector("pre").textContent = document.querySelector("iframe").sandbox.value;
<iframe sandbox=" a b c "></iframe>
<pre id="log"></pre>
document.querySelector("pre").textContent = document.querySelector("iframe").sandbox.value;