I'm new to programming and working on my first small project. Basically, I am getting user text input and want to replace some letters. The problem is to display the output in the same textarea as I am getting the input in, is it even possible? This is what I got so far.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Plagiat</title>
<meta name="Beskrivelse" content="Et program som kan gøre din tekst
usynlig for plagiatkontol.">
</head>
<body>
<script type="text/javascript">
function letter_magic()
{
var text = document.getElementById("input_text").value;
var end_text = text.replace(/A/g, "b").replace(/e/g, "o");
document.write(end_text);
}
</script>
<textarea cols="40" rows="10" id="input_text" placeholder="Indsæt
din tekst... "> </textarea>
<br/>
<button onclick="letter_magic()" id="button1">Start</button>
</body>
</html>