Ver Mensaje Individual
  #4 (permalink)  
Antiguo 02/09/2009, 04:54
samu22
 
Fecha de Ingreso: abril-2008
Mensajes: 453
Antigüedad: 16 años, 1 mes
Puntos: 16
Respuesta: Obtener retorno funcion javascript en PHP

Código html:
Ver original
  1. <script type="text/javascript">
  2.       function returnNewName(out){
  3.                 if(confirm("Ya existe un fichero llamado asi ¿desea cambiar el nombre con el que guardarlo?")){
  4.                     var newName = prompt( "Introduzca aqui el nuevo nombre");
  5.                     var input = document.getElementById(out);
  6.                     input.focus();
  7.                     input.value = newName;
  8.                 }
  9.       }
  10. </script><!--  -->
  11.  
  12. <input type="text" id="archivo" value="" />
  13. <a href="#" onClick="returnNewName('archivo')"> cambiar </a>