Last active
June 30, 2017 21:41
-
-
Save tomazursic/43106b42ca28cd75176a976bcf775987 to your computer and use it in GitHub Desktop.
Create iframe
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
document.body.innerHTML = ''; | |
document.head.innerHTML = ''; | |
var i = document.createElement('iframe'); | |
i.id='theiframe'; | |
i.style.width = '100%'; | |
i.style.height='100%'; | |
i.src = '?'; | |
var wrap = document.createElement('div'); | |
wrap.style.margin = 'auto'; | |
wrap.style.width = '90vh'; | |
wrap.style.height = '90vh'; | |
wrap.style.resize = 'both'; | |
wrap.style.overflow = 'hidden'; | |
wrap.appendChild(i); | |
document.body.appendChild(wrap); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment