Last active
December 27, 2019 13:36
-
-
Save i2r/9263403624c414f37ec5f4652aa774a2 to your computer and use it in GitHub Desktop.
IFRAME LINK
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
/** | |
* IFRAME LINK | |
*/ |
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
<iframe/> |
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
const iframe = document.querySelector('iframe'); | |
const html = '<html>' | |
+ '<meta name="referrer" content="origin" />' | |
+ '<body style="font: 14px Helvetica, Arial, sans-serif;">' | |
+ '<a href="https://result.dabblet.com/gist/4ffe90e621d9446707ddd08007c33821/8415931b93a98e362fe3fa5e578123786f00269d">Page 2</a>' | |
+ '</body></html>'; | |
//const doc = iframe.contentWindow.document; | |
//doc.open(); | |
//doc.write(html); | |
//doc.close(); | |
iframe.setAttribute('src', 'data:text/html;charset=utf-8,' + encodeURI(html)); |
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
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"javascript"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment