<!DOCTYPE html>
<html>
  <body>
    <div id="target"></div>
    <script>
      document.getElementById("target").innerHTML =
        "<object type='text/html' data='data:text/html,&lt;body bgcolor=&quot;green&quot;&gt;' width='300' height='200'></object>";
    </script>
  </body>
</html>