結果 : how to display error message in javascript without using alert