You can’t control the appearance of confirm()
or alert()
Javascript popups, because they are native controls, so their appearance is based on the OS and the browser.
What you can do:
- create your own Javascript dialog
- use a pre-written dialog like jQuery UI’s dialog
- if you don’t want to include a full library (like jQuery UI) for a simple dialog, try something like javascript-simple-dialog