Ver Mensaje Individual
  #3 (permalink)  
Antiguo 10/04/2012, 17:09
Avatar de emprear
emprear
Colaborador
 
Fecha de Ingreso: junio-2007
Ubicación: me mudé
Mensajes: 8.388
Antigüedad: 16 años, 10 meses
Puntos: 1567
Respuesta: Cómo posicionar el prompt al final de un textarea con texto?

Asi
Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <title>Cursor al final</title>
  5. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  6.  
  7. </head>
  8. <body onload="document.getElementById('test').focus();">
  9. <textarea rows="10" cols="30" id="test"
  10. onfocus="var val=this.value; this.value=''; this.value= val;">
  11. Siempre hay quien quisiera ser distinto, nadie está conforme con lo que le tocó</textarea>
  12. </body>
  13. </html>

Saludos
__________________
La voz de las antenas va, sustituyendo a Dios.
Cuando finalice la mutación, nueva edad media habrá
S.R.