Working with iframes

So I had been stuck for a while with this very simple page, putting some JS for loading content from another file together with scaling and resizing of divs. This has worked as a idea sprout for myself but was never very representative for what I wanted. I stumbled upon this example on Stack Overflow today where two rows of code basically fixed the basics for my page. Using the method encodeURIComponent on the contents of a text field and appending it to an iframes src with a html mime-type made for a really cool HTML, CSS and JS editor.
Looking good!