Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<iframe srcdoc="<style>.grid{display:grid;}</style><div class='grid'><span>a</span><span>b</span></div>"></iframe>
<script>
"use strict";
function reloadIFrame() { // eslint-disable-line no-unused-vars
const iFrame = document.querySelector("iframe");
iFrame.setAttribute("srcdoc", iFrame.getAttribute("srcdoc"));
}
</script>