<script>var wnd = window.open(''); var node = document.createTextNode('OK'); wnd.document.body.appendChild(node); </script>