Input validation

How can I change the alert for input validation using JS