Is this homework?
else if (document.ExamEntry.ExaminationNumber.value.length !=4)
But 4 spaces or ???? will satisfy that test.
You say 4 characters but I would have thought that a number
consisted of digits. I answered this same question very recently at
Please note my other comments in that thread.
“If liberty means anything at all, it means the right to tell people what they do not want to hear.” - George Orwell, English novelist and journalist, 1903-1950.