No. Only the following options are possible:
- alert (display string);
- confirm (display the line and get yes / no | true / false back);
- (display line and get input line)
You can create your own modal dialog using various methods. Under the hood, all of them essentially do the same thing: display a separate web page in a pop-up window or iFrame and disable input access to the rest of the browser until the pop-up window is closed. They make mistakes quite easily (hard to use + very annoying), but when done correctly, they offer the developer a lot of energy - since this is a complete web page that you control, you can pass complex JavaScript objects between the dialog and the main browser of the window, instead to rely on the primitive interaction modes offered by ready-made dialogs.
source share