create-iframe
v1.0.1
Published
programmatically create an iframe that can execute javascript
Downloads
20
Maintainers
Readme
create-iframe
Programmatically create an iframe that can execute javascript
About
Easily create an iframe with arbitrary javascript.
Extracted from browser-module-sandbox
Install
npm install --save create-iframe
Usage
var createIframe = require('create-iframe')
var code = 'console.log(\'hello\')'
var iframe = createIframe(code, { container: document.body })
Examples
Contributing
Contributions are welcome! Please read the contributing guidelines first.
Conduct
It is important that this project contributes to a friendly, safe, and welcoming environment for all. Read this project's code of conduct
Changelog
Read about the changes to this project in CHANGELOG.md. The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
Contact
- issues – Please open issues in the issues queue
- twitter – Have a question? @sethdvincent