User Below code
function AllowAlphaNumeric() {
var bool = check(document.getElementById("textbox").value);
if (bool)
{
var r = confirm("You have enter symbol do you want to continue");
if (r == false) {
document.getElementById("TEXTBOX").value = "";
}
}
}
function check(string) {
var format = /[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/;
if (format.test(string)) {
return true;
} else
return false;
}