Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <textarea id="code" oninput="reloadHTML()"></textarea>
- <iframe id="view"></iframe>
- <script>
- function reloadHTML() {
- console.log('hello')
- view.contentDocument.open();
- view.contentDocument.write(code.value);
- view.contentDocument.close();
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement