I am attempting to display text while it is being written within a textarea inside an iframe. So it will be displayed as though through an external page.
The current code displays the input in the div with id "div". But I want to display it in an iframe instead, is that possible?
My current code is:
<script language='javascript'>
function hot(){
document.getElementById("div").innerHTML=document.getElementById("text").value
}
window.onload = function() {hot();};
</script>
<textarea id="text" onKeyUp="hot();"></textarea>
<div id="div"></div>