Ver Mensaje Individual
  #2 (permalink)  
Antiguo 25/08/2006, 05:11
Avatar de KarlanKas
KarlanKas
Moderador extraterrestre
 
Fecha de Ingreso: diciembre-2001
Ubicación: Madrid
Mensajes: 6.987
Antigüedad: 22 años, 4 meses
Puntos: 61

Prueba con esto:

Código:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
	<title>Untitled</title>
</head>

<body>
<input type="Button" onclick="variable=document.getElementsByTagName('HTML')[0].innerHTML;document.getElementById('cajetin').value='<html>'+variable+'</html>'" value="pepe"><br>

<textarea cols="70" rows="10" name="cajetin" readonly style="overflow:auto;"></textarea>


</body>
</html>
Un saludo!
__________________
Cómo escribir

No hay pregunta tonta, sino tonto que quiere seguir en la ignorancia.