Alert () prompt - checkboxes

With warnings you can have text inputs. I was hoping you could check the boxes. Is it possible?

http://www.w3schools.com/JS/js_popup.asp

+4
source share
4 answers

No, you will need to create a dialog box for this.

You can achieve this with relative ease through jQuery and more specifically the jQuery UI , allowing dialogs to exit without too much know-how.

+10
source

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.

+7
source

Pretty shure is impossible. However, you can simulate an โ€œalert fieldโ€ with the content you need. For example, jQuery is a great javascript framework for this.

+3
source

no, but you can create a function that opens a warning window with html in it, for example, on facebook.

+3
source

All Articles