Ver Mensaje Individual
  #4 (permalink)  
Antiguo 03/05/2003, 07:03
Avatar de tunait
tunait
Moderadora
 
Fecha de Ingreso: agosto-2001
Ubicación: Terok Nor
Mensajes: 16.805
Antigüedad: 23 años, 5 meses
Puntos: 381
Sip, entonces debes pedirle opener.location.href='pagina.asp'


Para la primera pregunta a ver si te sirve esto:

Código PHP:
<script language="JavaScript">
function 
saltos(cual)
{
if(
cual.charCodeAt(cual.length-1) == 10)
    {
    
intro = new RegExp (String.fromCharCode(10))
    
texto cual.replace(intro,"<br>")
    
texto texto.replace (String.fromCharCode(13),"")
    
document.form1.textarea.value texto
    
}
}
</script>
</head>

<body>
<form name="form1" method="post" action="">
  <textarea name="textarea" cols="30" rows="6" onkeyup="saltos(this.value)"></textarea>
</form>
</body>