<! docType html> <html Lang = "en"> <kopf> <meta charset = "utf -8"> <title> Eine JavaScript -Instanz pro Tag - füllt Zeichen in textarea in jeder Zeile </title> <script> function klicka () {console.log ("aaaa"); var aa = document.getElementById ("text"); var line = aa.value.split ("/n"); var bbb = document.getElementById ("Ergebnis"); var string = ""; für (i = 0; i <line.length; i ++) {String+= Linien [i]+"<br/>"; //// </br> und <br/> sollte mit <br/>} bbb.innerhtml = String} </script> </head> <body> <textarea id = "texte" text "text" text "text" text "text" verwendet werden. " "Ergebnis"> </div> <a href = "JavaScript: void (0);" Onclick = "Clicka ()"> Handlungsbrüche </a> </body> </html>