Kopieren Sie den Code -Code wie folgt:
<html>
<kopf>
<title> bis zum Titel "Dokument" </title>
<script type = "text/javaScript">
Funktion AA ()
{{{{
S = Form1.t1.Value;
S = S.Replace (// n |/r/g, ""); // G ist ein globaler Ersatz, und wenn Sie es nicht hinzufügen, ersetzen Sie einfach die erste, die eine Kutschenrendite und ein neuer Charakter ist .
Form1.t1.Value = S;
}
</script>
</head>
<body>
<Formular name = "Form1">
<textArea name = "t1" style = "Höhe: 74px"> </textarea>
<Eingabe type = "button" value = "aa" onclick = "aa ()">
</form>
</body>
</html>