tell me how to highlight the field frame in red for 5 seconds if an error was made in the field
<span>Фамилия получателя</span> <input type="text" size="90px" id="surname"><br> <input type="button" value="Сохранить" onclick="go()"> <script> function go() { var snl = document.getElementById('surname').value.length; if (snl == 0) { alert("все поля должны быть заполнены"); document.getElementById('surname').focus(); return; } } </script>