Source code
Revision control
Copy as Markdown
Other Tools
log("external script before adding iframe");
var iframe = document.createElement("iframe");
iframe.srcdoc = "<script>parent.log('script in iframe')</script>"
document.body.appendChild(iframe);