<input type="text" pattern="[a-zA-Z]+"
oninvalid="setCustomValidity('Custom Message')" />