How to personalize alert buttons - window.confirm() and window.alert() [duplicate]
This question already has an answer here: Custom “confirm” dialog in JavaScript? 5 answers I have seen many websites that have personalized their alert and confirmation boxes with different button text. By default, this is what the JavaScript window.confirm() function would output: +-----------------------------+ |Message from webpage | +-----------------------------+ |Popup text | | | | | | | | | | [Ok] [Cancel] | +-----------------------------+ But, what if I wanted some customization like custom header text, and custom button text? +-----------------------------+ |My custom Header | +------