<TEXTAREA id="Textarea" name="Textarea" rows="2" cols="20">
</TEXTAREA>
<INPUT id="Button" type="button" value="下载另存为" name="Button" onclick="show()">
<script language=javascript>
function show()
{
obj=document.createElement("<iframe name='iframe1' style='display:none'>")
document.body.appendChild(obj)
iframe1.document.open()
iframe1.document.write(document.getElementById("Textarea").value)
iframe1.document.close()
iframe1.document.execCommand('saveas','true','.txt')
}
</script>