Se vuoi forzare il download puoi fare così:

codice:
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Pagina vuota</title>
<script type="text/javascript">
function updateLink() {
	document.getElementById("notesLink").setAttribute("href", "data:text\/plain;charset=utf-8," + escape(document.notesForm.notesArea.value));
	document.getElementById("notesFile").setAttribute("href", "data:application\/bin;charset=utf-8," + escape(document.notesForm.notesArea.value));
}
</script>
</head>

<body onload="updateLink();">
<form name="notesForm">


<textarea name="notesArea" rows="15" cols="50" onblur="updateLink();"></textarea></p>


[ Scarica file di testo | Apri file di testo ]</p>
</form>
</body>
</html>