Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

98
Views
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 answers
Answer question

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 Report

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!