Report question

Question: javascript how to create a validation error message without using alert