<html> <head> <title>Programa Java</title> </head> <script language="javascript"> function cadena() { nom=forma4.nombre.value; posi=nom.charAt(3); longitud=nom.length; document.write("Su Nombre---------------> "+ nom +"<br><br>"); document.write("Parpadea----------------> "+ nom.blink() +"<br>"); document.write("Longitud----------------> "+ longitud +"<br>"); document.write("Posicion 3 se encuentra ->"+ posi +"<br><br>"); } </script> <body> <img src="../imagenes/logo.jpg" width="80" height="76" border="0" align ="rigth" >Ejercicio String<br> <div align="center"> <h3> <marquee scrollamount="6" width="500" alternate="behabior"> Operaciones con cadenas </marquee> </h3></div> <hr size="3" color="red" width="1200"> <form name="forma4" id="forma4" method="post"> Ingrese Nombre:<input type="text" name="nombre" maxlength="7"><br> </form> <a href="javascript:cadena();">Calcular</a><br> <a href="cadena.pdf"> Código </a> <br> </body> </html>