blob: 11f9284c1dca698b83b5a736ff5188b6172c3f21 [file] [log] [blame]
<!DOCTYPE HTML>
<html>
<head>
<style>
* {
border: none;
}
:focus-within {
border: 2px solid green;
}
</style>
</head>
<body>
<div>
<input>
<input>
<input>
<input>
<input>
<input>
<input>
</div>
<script>
let midInput = document.getElementsByTagName("input")[3];
midInput.focus();
</script>
</body>
</html>