Hallo,
versuche es mal damit:
<html>
<head>
<title></title>
<script type="text/javascript">
<!--
function inhaltTE() {
var inh = document.getElementById("te").firstChild?document.getElementById("te").firstChild.nodeValue:"";
for (var i=0; i<inh.length; i++) {
c = inh.charAt(i);
alert(c + " = " + escape(c));
if (c == "\r") alert("Zeilenwechsel");
}
}
//-->
</script>
<noscript></noscript>
</head>
<body>
<textarea id="te"></textarea>
<input type="button" name="" value="OK" onclick="inhaltTE();">
</form>
</body>
</html>