Closed cekvenich closed 5 years ago
This works, but not sure if best:
var tstDia = <dialog id="d1001">
<p>oh hi there</p>
</dialog>
document.body.innerHTML +=tstDia
var tstAns = document.getElementById('d1001').show
How about !!window.HTMLDialogElement
?
I want to only load poly if needed. Is this a good way?:
if ( !document.body.show ) { ... }