You simply cannot, the styling is handled by the browser and is different in every browser. You could use a different solution such as a jQuery UI Dialog https://jqueryui.com/dialog/
More Related Contents:
- Javascript – string + var alert [closed]
- How to edit a JavaScript alert box title?
- Why is console.log() considered better than alert()?
- Javascript close alert box
- Twitter Bootstrap alert message close and open again
- How do I recover the “text” from the page originating the alert, esp **after** the human user has *clicked* [dismiss] on the page’s **alert**?
- Node.js Alert Causes Crash
- How to get Text BOLD in Alert or Confirm box?
- Can I prevent an alert() with a Google Chrome Extension
- combo box is getting vanished when an alert is coming
- Detect if an alert or confirm is displayed on a page
- Go to URL after OK button if alert is pressed
- How to override the alert function with a userscript?
- Why “Prevent this page from creating additional dialogs” appears in the alert box?
- JavaScript alert not working in Firefox 6
- Javascript and AJAX, only works when using alert()
- window.location.indexOf not working in Javascript
- JavaScript get clipboard data on paste event (Cross browser)
- Generate a Hash from string in Javascript
- .trim() in JavaScript not working in IE
- Is there a more accurate way to create a Javascript timer than setTimeout?
- parsing JSONP $http.jsonp() response in angular.js
- How do I convert array of Objects into one Object in JavaScript?
- How do I sort an array of objects based on the ordering of another array?
- How can I lock the first row and first column of a table when scrolling, possibly using JavaScript and CSS?
- Moment.js transform to date object
- Update all clients using Socket.io?
- Resize external website content to fit iFrame width
- WARNING: Tried to load angular more than once. Angular JS
- How to make the HTML renders before the alert is triggered?