Uncaught TypeError: Cannot read property ‘value’ of undefined at Object.onChange

The solution for “Uncaught TypeError: Cannot read property ‘value’ of undefined at Object.onChange” can be found here. The following code will assist you in solving the problem.

var x=document.form1.n1.value;
var y=document.form1.n2.value;
var z=document.form1.n3.value;
function verif(x,y,z){
if (isNaN(x)|| isNaN(y) || isNaN(z))){
alert(“Verifier les champs de saisie”);
return false;
}
else { return true}
}
function compar(){
if(verif(x,y,z)){
if (x==z==y){
alert(“les trois variables sont identiques”);
}if ((x==z) || (z==y) || (x==y)){
alert(“Deux variables sont de valeurs égales”);}
else{
alert(“les trois variables sont différentes”);}}}

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

0
inline scripts encapsulated in