Ver Mensaje Individual
  #4 (permalink)  
Antiguo 09/02/2008, 18:35
codigojavascript
 
Fecha de Ingreso: diciembre-2007
Ubicación: Argentina
Mensajes: 151
Antigüedad: 17 años, 3 meses
Puntos: 2
Re: Cargar Un texto mediante un enlace

Haber si esto sirve:

Código:
<html> 
<head> 

<script language="javascript">

function textoEnlace() {

subvalor = ">";
subvalor2 = "<";

textoEnlace = valor.substring(valor.indexOf(subvalor),valor.lastIndexOf(subvalor2));

document.form.cuadroTexto.value = textoEnlace = textoEnlace.substring(1,textoEnlace.length);

}

</script>

</head> 

<body> 

<form name="form">

<input type="text" name="cuadroTexto">

</form>

<script language="javascript">
valor = '<a href="#" name="enlace01" onClick="textoEnlace()">aaaaa</a>';
document.write(valor);
</script>

</body> 
</html>
Saludos