Ver Mensaje Individual
  #7 (permalink)  
Antiguo 19/03/2010, 10:34
Avatar de David
David
Moderador
 
Fecha de Ingreso: abril-2005
Ubicación: In this planet
Mensajes: 15.720
Antigüedad: 19 años
Puntos: 839
Respuesta: problema con el confirm () en IE6

No, no hace falta ningún código adicional. Debería funcionar como está.

De hecho, probé con una página de prueba como esta y funciona bien:
Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2.    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3.  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4.  <head>
  5.    <title>Title</title>
  6.    <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
  7.    <meta http-equiv="Content-Style-Type" content="text/css" />
  8.    <script type="text/javascript">
  9. function confirma()
  10. {
  11. var agree = confirm("¿Realmente desea eliminarlo? ");
  12.  
  13. if (agree)
  14. return true ;
  15. else
  16. return false ;}
  17.    </script>
  18.  </head>
  19.  <body>
  20.     <div>
  21.         <a href="http://www.google.com" onclick="return confirma()">Enlace</a>
  22.     </div>
  23.  </body>
  24. </html>
__________________
Por favor, antes de preguntar, revisa la Guía para realizar preguntas.