Skip to content
/ iframify Public

Wraps the given HTML code in an iframe that resizes dynamically to fit its contents.

Notifications You must be signed in to change notification settings

coreh/iframify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iframify

Wraps the given HTML code in an iframe that resizes dynamically to fit its contents.

Useful for displaying embeds that use <script> tags without exposing your page to foreign code.

Usage:

var iframe = iframify('<h1>Hello, World</h1>');
document.body.appendChild(iframe);

About

Wraps the given HTML code in an iframe that resizes dynamically to fit its contents.

Resources

Stars

Watchers

Forks

Packages

No packages published