Modificar Texto
Publicado por Esteban (1 intervención) el 15/11/2018 23:52:30
Hola ! necesito ayuda soy estudiante y estoy viendo javascript , tengo una tarea que trata de escribir un texto de un textarea y modificar su tamaño a 1.5 de el tamaño estandar y cambiar su color de letra a rojo intente hacerlo por mi cuenta pero no puedo si alguen pudiera decirme en que estoy mal o si podria darme algun consejo estaria muy agradecido
Codigo:
Codigo:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<center>
<table>
<tr>
<th>
<textarea rows="10" cols="50" id="Textoriginal" placeholder="Escribe Algo..."></textarea></th>
<th><textarea rows="10" cols="50" id="Textofake"></textarea></th>
</tr>
</table>
<input type="button" id="btnchange" value="Modificar" onclick="click()">
<script type="application/javascript">
function click()
{
var txt = document.getElementById("Textoriginal");
txt.style.color="#fff";
txt.style.size="20px";
function=document.getElementById("Textoriginal").value;
cadena=cadena.replace(txt);
document.getElementById("Textofake").innerHTML(cadena);
}
</script>
</center>
Valora esta pregunta
0