Last active
June 29, 2019 11:57
-
-
Save FerraBraiZ/6d276bb4461762ddb270b7e7eec5ba55 to your computer and use it in GitHub Desktop.
iframe javascript
This file contains hidden or 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
<script> | |
let _iframe = document.createElement("iframe"); | |
_iframe.setAttribute("src", `https://google.com`); | |
_iframe.style.width = "100%"; | |
_iframe.style.height = "50vh"; | |
_iframe.style.border = "0px"; | |
_iframe.onloadend = function () { | |
console.info("https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/loadend_event"); | |
}; | |
_iframe.onload = function () { | |
console.info('https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/load_event'); | |
}; | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment