I want a textarea and a button. When you click the button i want it to display the content of the textarea. I have this but there is a problem. When there is a large amount of text in the textarea most of the text goes out of the textarea! how can i fix it?
<script type="text/javascript">
<!--
function viewfi()
{
str = document.forms[0].area.value;
var popwindow=window.open("","","top=40,left=30
,width=500,height=125");
popwindow.document.open();
popwindow.document.write(str);
}
//-->
</script>
<form
<input type="button" onclick="viewfi()">
<textarea id="area" name="area" class="textarea"></textarea>
</form>
<script type="text/javascript">
<!--
function viewfi()
{
str = document.forms[0].area.value;
var popwindow=window.open("","","top=40,left=30
,width=500,height=125");
popwindow.document.open();
popwindow.document.write(str);
}
//-->
</script>
<form
<input type="button" onclick="viewfi()">
<textarea id="area" name="area" class="textarea"></textarea>
</form>