https://github.com/coreh/iframify
Wraps the given HTML code in an iframe that resizes dynamically to fit its contents.
https://github.com/coreh/iframify
Last synced: 4 months ago
JSON representation
Wraps the given HTML code in an iframe that resizes dynamically to fit its contents.
- Host: GitHub
- URL: https://github.com/coreh/iframify
- Owner: coreh
- Created: 2014-07-15T20:43:59.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-10-22T00:09:08.000Z (over 11 years ago)
- Last Synced: 2025-08-02T08:27:20.013Z (11 months ago)
- Language: JavaScript
- Size: 162 KB
- Stars: 25
- Watchers: 1
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: History.md
Awesome Lists containing this project
README
# iframify
Wraps the given HTML code in an iframe that resizes dynamically to fit its contents.
Useful for displaying embeds that use `` tags without exposing your page to foreign code.
## Usage:
```javascript
var iframe = iframify('<h1>Hello, World</h1>');
document.body.appendChild(iframe);
```