0

I implemented this function inside my asp.net project. Its working 100% working.

function barcodeValidation() {
var newbarcode, confirmBarcode;
newbarcode = document.getElementById("txtNewBarcode").value;
confirmbarcode = document.getElementById("txtConfirmBarcode").value;
if (newbarcode != confirmbarcode) {
        alert("Value not match");
        return false;
}
return true;

}

But the problem is when this window appearing for the 2nd time there is check box that saying "Prevent this page creating additional dialogs.... So how to disable this tick mark? If user put tick mark to this, warning message will never display again.

Is there any method to workaround this?

Prageeth Liyanage
  • 1,612
  • 2
  • 19
  • 41
  • the best way to prevent someone using the checkmark on that debug method is to never use alert(). – dandavis Jun 24 '14 at 07:06
  • @dandavis I agree.. Use an on page validation message.. alerts are extremely annoying to the user. – webkit Jun 24 '14 at 07:21

0 Answers0