Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

90
Vistas
How Can I Center the "Confirm Window" Alert in the Center of the Page Using React

I am facing Issue with "Confirm Window" Alert...I need to center the "Window.Confirm" alert in the Center of the Page, But it is showing at the Top of the Page.. Can Anyone Help me How Can I do that, Here In the Delete Function I am Dispatching an Action through Redux, Can Anyone Please Help me in this, Thanks in Advance..

Delete Function with Confirm Window :

const deleteData =(productId) =>{
      if(window.confirm('Are You Sure, You want delete?')){
        dispatch(allActions.deleteData(productId))
      }
 

}

about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

It is not possible to customize the appearance or position of the native browser UI elements which appear when invoking window.confirm. They are not part of the DOM. You can write your own or use an existing module which provides equivalent functionality.

about 4 years ago · Juan Pablo Isaza Denunciar

0

It is not possible to change the position of window.confirm.

You can either create a modal component in React or use one of the existing npm packages like react-modal.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda