I\'m showing a confirmation alert box through JavaScript:
function checked() {
if (hdnval.toLowerCase() != textbox1.toLowerCase()) {
var save = window.con
This cannot be done with the native javascript dialog box, but a lot of javascript libraries include more flexible dialogs. You can use something like jQuery UI's dialog box for this.
See also these very similar questions:
Here's an example, as demonstrated in this jsFiddle:
Click here