Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

107
Visualizações
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 Respostas
Responde à pergunta

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 Relatório

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda