[javascript] javascript how to create a validation error message without using alert