How to disable click outside of the confirm function?

I am trying to disable click outside the confirm message in JS. Is there any simple solution for this issue? If the confirm message show up on mobile, and i click outside of it.. it will dissapear, but i need it to stay as it is.

 if (confirm("Are u sure?")) {
    
 }