Ver Mensaje Individual
  #4 (permalink)  
Antiguo 24/06/2004, 00:19
Avatar de affv
affv
 
Fecha de Ingreso: diciembre-2002
Ubicación: Ahora aqui
Mensajes: 485
Antigüedad: 22 años, 5 meses
Puntos: 0
Te dejo tres diferentes formas solo acoplalas a lo que necesites.

1
Código PHP:
<html>

<
head>
<
title></title>
</
head>

<
body>

<
form action="prueba.htm">
<
input type="submit" value="Borrar" onClick="return window.confirm('Confirma que desea eliminar el registro?')">
</
form>

</
body>

</
html
2
Código PHP:
<html>

<
head>
<
title></title>
</
head>

<
body>

<
a href="prueba.htm" onClick="return window.confirm('Confirma que desea eliminar el registro?')">Eliminar</a>

</
body>

</
html
3
Código PHP:
<html>

<
head>
<
title></title>
<
script language="Javascript">
function 
eliminar(url,nombre){
    var 
conf confirm("Confirma que desea eliminar el registro?")?true:false;
    if(
conf){
        
location.href('prueba.htm');
          
//window.open(url,'EliminarRegistro', 'width=100, height=100, resizable=0, scrollbars=0');
    
}
    return 
false;
}
</script>
</head>

<body>

<input type="button" value="Borrar" onClick="eliminar('prueba.htm');">

</body>

</html> 
Espero te sirvan.
__________________
Todo tiene un comienzo y un fin!!
Postea tus proyectos