<textarea rows="20" cols="70" style="resize: none;" id="inputfeild">   
    </textarea>
    <iframe src="about:blank" id="f" name="outputfeild" width="700" height="300" id="output">
    </iframe>
    <br>
    <input type="submit" value="submit" id="OK">
    <br>
<script type="text/javascript">
     OK.onclick=function(){
        var ifr=document.getElementById("f").contentWindow.document.body;
       ifr.innerHTML=document.getElementById("inputfeild").value;
    }
</script>